Changeset View
Changeset View
Standalone View
Standalone View
test/functional/mempool_packages.py
Show All 9 Lines | |||||
MAX_ANCESTORS = 25 | MAX_ANCESTORS = 25 | ||||
MAX_DESCENDANTS = 25 | MAX_DESCENDANTS = 25 | ||||
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", "-deprecatedrpc=signrawtransaction"], | ||||
["-maxorphantx=1000", "-limitancestorcount=5"]] | ["-maxorphantx=1000", "-limitancestorcount=5"]] | ||||
# 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 = {} | ||||
▲ Show 20 Lines • Show All 236 Lines • Show Last 20 Lines |