Skip to content

Commit

Permalink
Use fees.base instead of fee for mempoolentry in histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtoth committed Jun 8, 2022
1 parent cc3085c commit 008d9ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electrumpersonalserver/server/mempoolhistogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def poll_update(self, timeout):
mempool_tx = self.rpc.call("getmempoolentry", [txid])
except JsonRpcError:
continue
fee_rate = 1e8*mempool_tx["fee"] // mempool_tx["vsize"]
fee_rate = 1e8*mempool_tx["fees"]["base"] // mempool_tx["vsize"]
self.mempool[txid] = (fee_rate, mempool_tx["vsize"])

return poll_interval_change

0 comments on commit 008d9ac

Please sign in to comment.