From 45ccf8a64ec43de8d124daee2426108520bdc309 Mon Sep 17 00:00:00 2001 From: ghost43 Date: Mon, 23 Jul 2018 14:31:52 +0200 Subject: [PATCH] fix mempool tx fee calculation typo (#531) --- electrumx/server/mempool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrumx/server/mempool.py b/electrumx/server/mempool.py index 40ba73d..01c4705 100644 --- a/electrumx/server/mempool.py +++ b/electrumx/server/mempool.py @@ -120,7 +120,7 @@ class MemPool(object): # Convert in_pairs and add the TX to tx.in_pairs = in_pairs # Compute fee - tx_fee = (sum(v for hashX, v in tx.in_pairs) - + tx.fee = (sum(v for hashX, v in tx.in_pairs) - sum(v for hashX, v in tx.out_pairs)) txs[hash] = tx for hashX, value in itertools.chain(tx.in_pairs, tx.out_pairs):