Browse Source

fix mempool tx fee calculation typo (#531)

patch-2
ghost43 7 years ago
committed by Neil
parent
commit
45ccf8a64e
  1. 2
      electrumx/server/mempool.py

2
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):

Loading…
Cancel
Save