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)