Skip to content

Commit

Permalink
fix regtest
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouziel committed Jan 10, 2025
1 parent 0670fe0 commit 8c44857
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions counterparty-core/counterpartycore/test/regtest/regtestnode.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,21 @@ def test_reorg(self):

self.wait_for_counterparty_server(last_block)

# other tests expect the second node to be connected if running
print("Re-connect to the first node...")
self.bitcoin_cli_2(
"addnode",
"localhost:18445",
"onetry",
_out=sys.stdout,
_err=sys.stdout,
)
# fix block count for other tests
self.block_count -= 1

print("Wait for the two nodes to sync...")
last_block = self.wait_for_node_to_sync()

print("Reorg test successful")

def test_electrs(self):
Expand Down

0 comments on commit 8c44857

Please sign in to comment.