From 1b4cc1ec0fd51caeea92da9d959a00805a4810a4 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sat, 12 Mar 2022 16:18:53 +0200 Subject: [PATCH] Support latest Bitcoin Core in `contrib/mempool.py` --- contrib/mempool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/mempool.py b/contrib/mempool.py index f5d7486..0cf57b8 100755 --- a/contrib/mempool.py +++ b/contrib/mempool.py @@ -21,7 +21,7 @@ def main(): txids = list(map(lambda a: [a], txids)) entries = d.request('getmempoolentry', txids) - entries = [{'fee': e['fee']*1e8, 'vsize': e['vsize']} for e in entries] + entries = [{'fee': e['fees']['base']*1e8, 'vsize': e['vsize']} for e in entries] for e in entries: e['rate'] = e['fee'] / e['vsize'] # sat/vbyte entries.sort(key=lambda e: e['rate'], reverse=True)