Skip to content

Commit

Permalink
test: Wait for local services to update in feature_assumeutxo
Browse files Browse the repository at this point in the history
  • Loading branch information
fjahr committed Sep 12, 2024
1 parent a5e9966 commit 19f4a7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/functional/feature_assumeutxo.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,9 @@ def test_sync_from_assumeutxo_node(self, snapshot):
self.sync_blocks(nodes=(miner, snapshot_node))
# Check the base snapshot block was stored and ensure node signals full-node service support
self.wait_until(lambda: not try_rpc(-1, "Block not found", snapshot_node.getblock, snapshot_block_hash))
assert 'NETWORK' in snapshot_node.getnetworkinfo()['localservicesnames']
self.wait_until(lambda: 'NETWORK' in snapshot_node.getnetworkinfo()['localservicesnames'])

# Now the snapshot_node is sync, verify the ibd_node can sync from it
# Now that the snapshot_node is synced, verify the ibd_node can sync from it
self.connect_nodes(snapshot_node.index, ibd_node.index)
assert 'NETWORK' in ibd_node.getpeerinfo()[0]['servicesnames']
self.sync_blocks(nodes=(ibd_node, snapshot_node))
Expand Down Expand Up @@ -698,7 +698,7 @@ def check_tx_counts(final: bool) -> None:
self.wait_until(lambda: len(n2.getchainstates()['chainstates']) == 1)

# Once background chain sync completes, the full node must start offering historical blocks again.
assert {'NETWORK', 'NETWORK_LIMITED'}.issubset(n2.getnetworkinfo()['localservicesnames'])
self.wait_until(lambda: {'NETWORK', 'NETWORK_LIMITED'}.issubset(n2.getnetworkinfo()['localservicesnames']))

completed_idx_state = {
'basic block filter index': COMPLETE_IDX,
Expand Down

0 comments on commit 19f4a7c

Please sign in to comment.