fix mempool tx fee calculation typo (#531)

This commit is contained in:
ghost43 2018-07-23 14:31:52 +02:00 committed by Neil
parent 7c01acdbf2
commit 45ccf8a64e

View File

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