Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc_rpc_avalancheproof.py
Show First 20 Lines • Show All 275 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
"dead", | "dead", | ||||
) | ) | ||||
# Test invalid proofs | # Test invalid proofs | ||||
dust = node.buildavalancheproof( | dust = node.buildavalancheproof( | ||||
proof_sequence, proof_expiration, wif_privkey, | proof_sequence, proof_expiration, wif_privkey, | ||||
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}") | |||||
dust2 = node.buildavalancheproof( | dust2 = node.buildavalancheproof( | ||||
proof_sequence, proof_expiration, wif_privkey, | proof_sequence, proof_expiration, wif_privkey, | ||||
create_coinbase_stakes(node, [blockhashes[0]], addrkey0.key, | create_coinbase_stakes(node, [blockhashes[0]], addrkey0.key, | ||||
amount=str(dust_amount))) | amount=f"{PROOF_DUST_THRESHOLD * 0.9999:.2f}")) | ||||
missing_stake = node.buildavalancheproof( | missing_stake = node.buildavalancheproof( | ||||
proof_sequence, proof_expiration, wif_privkey, [{ | proof_sequence, proof_expiration, wif_privkey, [{ | ||||
'txid': '0' * 64, | 'txid': '0' * 64, | ||||
'vout': 0, | 'vout': 0, | ||||
'amount': 10000000, | 'amount': 10000000, | ||||
'height': 42, | 'height': 42, | ||||
'iscoinbase': False, | 'iscoinbase': False, | ||||
▲ Show 20 Lines • Show All 240 Lines • Show Last 20 Lines |