Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc_p2p_proof_inventory.py
Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Lines | def test_receive_proof(self): | ||||
wait_until(lambda: proof.proofid in get_proof_ids(node)) | wait_until(lambda: proof.proofid in get_proof_ids(node)) | ||||
self.log.info("Test receiving a proof with missing utxo is orphaned") | self.log.info("Test receiving a proof with missing utxo is orphaned") | ||||
privkey = ECKey() | privkey = ECKey() | ||||
privkey.generate() | privkey.generate() | ||||
orphan_hex = node.buildavalancheproof( | orphan_hex = node.buildavalancheproof( | ||||
42, 2000000000, privkey.get_pubkey().get_bytes().hex(), [{ | 42, 2000000000, bytes_to_wif(privkey.get_bytes()), [{ | ||||
'txid': '0' * 64, | 'txid': '0' * 64, | ||||
'vout': 0, | 'vout': 0, | ||||
'amount': 10e6, | 'amount': 10e6, | ||||
'height': 42, | 'height': 42, | ||||
'iscoinbase': False, | 'iscoinbase': False, | ||||
'privatekey': bytes_to_wif(privkey.get_bytes()), | 'privatekey': bytes_to_wif(privkey.get_bytes()), | ||||
}] | }] | ||||
) | ) | ||||
▲ Show 20 Lines • Show All 176 Lines • Show Last 20 Lines |