Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc_rpc_avalancheproof.py
Show First 20 Lines • Show All 228 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
create_coinbase_stakes(node, [blockhashes[0]], addrkey0.key, amount="0")) | create_coinbase_stakes(node, [blockhashes[0]], addrkey0.key, amount="0")) | ||||
dust_amount = Decimal(f"{PROOF_DUST_THRESHOLD * 0.9999:.4f}") | dust_amount = Decimal(f"{PROOF_DUST_THRESHOLD * 0.9999:.4f}") | ||||
dust2 = node.buildavalancheproof( | dust2 = node.buildavalancheproof( | ||||
proof_sequence, proof_expiration, proof_master, | proof_sequence, proof_expiration, proof_master, | ||||
create_coinbase_stakes(node, [blockhashes[0]], addrkey0.key, | create_coinbase_stakes(node, [blockhashes[0]], addrkey0.key, | ||||
amount=str(dust_amount))) | amount=str(dust_amount))) | ||||
duplicate_stake = node.buildavalancheproof( | |||||
proof_sequence, proof_expiration, proof_master, | |||||
create_coinbase_stakes(node, [blockhashes[0]] * 2, addrkey0.key)) | |||||
missing_stake = node.buildavalancheproof( | missing_stake = node.buildavalancheproof( | ||||
proof_sequence, proof_expiration, proof_master, [{ | proof_sequence, proof_expiration, proof_master, [{ | ||||
'txid': '0' * 64, | 'txid': '0' * 64, | ||||
'vout': 0, | 'vout': 0, | ||||
'amount': 10000000, | 'amount': 10000000, | ||||
'height': 42, | 'height': 42, | ||||
'iscoinbase': False, | 'iscoinbase': False, | ||||
'privatekey': addrkey0.key, | 'privatekey': addrkey0.key, | ||||
}] | }] | ||||
) | ) | ||||
duplicate_stake = ("0b000000000000000c0000000000000021030b4c866585dd868" | |||||
"a9d62348a9cd008d6a312937048fff31670e7e920cfc7a74402" | |||||
"05c5f72f5d6da3085583e75ee79340eb4eff208c89988e7ed0e" | |||||
"fb30b87298fa30000000000f2052a0100000003000000210227" | |||||
"d85ba011276cf25b51df6a188b75e604b38770a462b2d0e9fb2" | |||||
"fc839ef5d3f86076def2e8bc3c40671c1a0eb505da5857a950a" | |||||
"0cf4625a80018cdd75ac62e61273ff8142f747de67e73f6368c" | |||||
"8648942b0ef6c065d72a81ad7438a23c11cca05c5f72f5d6da3" | |||||
"085583e75ee79340eb4eff208c89988e7ed0efb30b87298fa30" | |||||
"000000000f2052a0100000003000000210227d85ba011276cf2" | |||||
"5b51df6a188b75e604b38770a462b2d0e9fb2fc839ef5d3f860" | |||||
"76def2e8bc3c40671c1a0eb505da5857a950a0cf4625a80018c" | |||||
"dd75ac62e61273ff8142f747de67e73f6368c8648942b0ef6c0" | |||||
"65d72a81ad7438a23c11cca") | |||||
bad_sig = ("0b000000000000000c0000000000000021030b4c866585dd868a9d62348" | bad_sig = ("0b000000000000000c0000000000000021030b4c866585dd868a9d62348" | ||||
"a9cd008d6a312937048fff31670e7e920cfc7a7440105c5f72f5d6da3085" | "a9cd008d6a312937048fff31670e7e920cfc7a7440105c5f72f5d6da3085" | ||||
"583e75ee79340eb4eff208c89988e7ed0efb30b87298fa30000000000f20" | "583e75ee79340eb4eff208c89988e7ed0efb30b87298fa30000000000f20" | ||||
"52a0100000003000000210227d85ba011276cf25b51df6a188b75e604b3" | "52a0100000003000000210227d85ba011276cf25b51df6a188b75e604b3" | ||||
"8770a462b2d0e9fb2fc839ef5d3faf07f001dd38e9b4a43d07d5d449cc0" | "8770a462b2d0e9fb2fc839ef5d3faf07f001dd38e9b4a43d07d5d449cc0" | ||||
"f7d2888d96b82962b3ce516d1083c0e031773487fc3c4f2e38acd1db974" | "f7d2888d96b82962b3ce516d1083c0e031773487fc3c4f2e38acd1db974" | ||||
"1321b91a79b82d1c2cfd47793261e4ba003cf5") | "1321b91a79b82d1c2cfd47793261e4ba003cf5") | ||||
▲ Show 20 Lines • Show All 210 Lines • Show Last 20 Lines |