Changeset View
Changeset View
Standalone View
Standalone View
test/functional/p2p_invalid_tx.py
Show First 20 Lines • Show All 183 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
for i in range(len(orphan_tx_pool)): | for i in range(len(orphan_tx_pool)): | ||||
orphan_tx_pool[i].vin.append(CTxIn(outpoint=COutPoint(i, 333))) | orphan_tx_pool[i].vin.append(CTxIn(outpoint=COutPoint(i, 333))) | ||||
orphan_tx_pool[i].vout.append( | orphan_tx_pool[i].vout.append( | ||||
CTxOut( | CTxOut( | ||||
nValue=11 * COIN, | nValue=11 * COIN, | ||||
scriptPubKey=SCRIPT_PUB_KEY_OP_TRUE)) | scriptPubKey=SCRIPT_PUB_KEY_OP_TRUE)) | ||||
pad_tx(orphan_tx_pool[i]) | pad_tx(orphan_tx_pool[i]) | ||||
with node.assert_debug_log(['mapOrphan overflow, removed 1 tx']): | with node.assert_debug_log(['orphanage overflow, removed 1 tx']): | ||||
node.p2ps[0].send_txs_and_test(orphan_tx_pool, node, success=False) | node.p2ps[0].send_txs_and_test(orphan_tx_pool, node, success=False) | ||||
rejected_parent = CTransaction() | rejected_parent = CTransaction() | ||||
rejected_parent.vin.append( | rejected_parent.vin.append( | ||||
CTxIn( | CTxIn( | ||||
outpoint=COutPoint( | outpoint=COutPoint( | ||||
tx_orphan_2_invalid.sha256, | tx_orphan_2_invalid.sha256, | ||||
0))) | 0))) | ||||
Show All 13 Lines |