Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc_rpc_getavalancheinfo.py
Show First 20 Lines • Show All 333 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
for p in proofs: | for p in proofs: | ||||
expected_logs.append( | expected_logs.append( | ||||
f"Avalanche finalized proof {p.proofid:0{64}x}") | f"Avalanche finalized proof {p.proofid:0{64}x}") | ||||
with node.assert_debug_log(expected_logs): | with node.assert_debug_log(expected_logs): | ||||
self.wait_until(lambda: vote_for_all_proofs()) | self.wait_until(lambda: vote_for_all_proofs()) | ||||
self.log.info("Disconnect all the nodes") | self.log.info("Disconnect all the nodes") | ||||
for n in node.p2ps: | node.disconnect_p2ps() | ||||
n.peer_disconnect() | |||||
n.wait_for_disconnect() | |||||
assert_avalancheinfo({ | assert_avalancheinfo({ | ||||
"active": True, | "active": False, | ||||
"local": { | "local": { | ||||
"live": True, | "live": True, | ||||
"proofid": f"{proof.proofid:0{64}x}", | "proofid": f"{proof.proofid:0{64}x}", | ||||
"limited_proofid": f"{proof.limited_proofid:0{64}x}", | "limited_proofid": f"{proof.limited_proofid:0{64}x}", | ||||
"master": privkey.get_pubkey().get_bytes().hex(), | "master": privkey.get_pubkey().get_bytes().hex(), | ||||
"stake_amount": coinbase_amount, | "stake_amount": coinbase_amount, | ||||
}, | }, | ||||
"network": { | "network": { | ||||
Show All 16 Lines |