Skip to content

Commit

Permalink
GH-69 increase allowed unlinkable blocks from 15 to 250
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Apr 26, 2024
1 parent 66f3c3a commit 254c463
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/nodeos_startup_catchup.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ def waitForNodeStarted(node):
logFile = Utils.getNodeDataDir(catchupNodeNum) + "/stderr.txt"
f = open(logFile)
contents = f.read()
if contents.count("3030001 unlinkable_block_exception: Unlinkable block") > 15: # a few are fine
# See https://github.com/AntelopeIO/spring/issues/81 for fix to reduce the number of expected unlinkable blocks
# Test verifies LIB is advancing, check to see that not too many unlinkable block exceptions are generated
# while syncing up to head.
if contents.count("3030001 unlinkable_block_exception: Unlinkable block") > 250:
errorExit(f"Node{catchupNodeNum} has unlinkable blocks: {logFile}.")

testSuccessful=True
Expand Down

0 comments on commit 254c463

Please sign in to comment.