diff --git a/test/functional/mempool_packages.py b/test/functional/mempool_packages.py index dc766d709d..308d75fcc9 100755 --- a/test/functional/mempool_packages.py +++ b/test/functional/mempool_packages.py @@ -30,7 +30,7 @@ def chain_transaction(self, node, parent_txid, vout, value, fee, num_outputs): outputs = {} for i in range(num_outputs): outputs[node.getnewaddress()] = send_value - outputs["fee"] = fee + outputs["fee"] = value - (num_outputs * send_value) rawtx = node.createrawtransaction(inputs, outputs) signedtx = node.signrawtransactionwithwallet(rawtx) txid = node.sendrawtransaction(signedtx['hex'])