Changeset View
Changeset View
Standalone View
Standalone View
test/functional/mempool_packages.py
Show All 20 Lines | |||||
class MempoolPackagesTest(BitcoinTestFramework): | class MempoolPackagesTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 2 | self.num_nodes = 2 | ||||
self.extra_args = [["-maxorphantx=1000"], | self.extra_args = [["-maxorphantx=1000"], | ||||
["-maxorphantx=1000", "-limitancestorcount=5"]] | ["-maxorphantx=1000", "-limitancestorcount=5"]] | ||||
def skip_test_if_missing_module(self): | |||||
self.skip_if_no_wallet() | |||||
# Build a transaction that spends parent_txid:vout | # Build a transaction that spends parent_txid:vout | ||||
# Return amount sent | # Return amount sent | ||||
def chain_transaction(self, node, parent_txid, vout, value, fee, num_outputs): | def chain_transaction(self, node, parent_txid, vout, value, fee, num_outputs): | ||||
send_value = satoshi_round((value - fee) / num_outputs) | send_value = satoshi_round((value - fee) / num_outputs) | ||||
inputs = [{'txid': parent_txid, 'vout': vout}] | inputs = [{'txid': parent_txid, 'vout': vout}] | ||||
outputs = {} | outputs = {} | ||||
for i in range(num_outputs): | for i in range(num_outputs): | ||||
outputs[node.getnewaddress()] = send_value | outputs[node.getnewaddress()] = send_value | ||||
▲ Show 20 Lines • Show All 290 Lines • Show Last 20 Lines |