Skip to content

Commit

Permalink
GH-223 Wait for system init transaction to make it into a block. A te…
Browse files Browse the repository at this point in the history
…st failed because it attempted to use the system contract before it was init-ed.
  • Loading branch information
heifner committed Sep 24, 2022
1 parent 68b2543 commit f2d077f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -1328,6 +1328,11 @@ def bootstrap(self, biosNode, totalNodes, prodCount, totalProducers, pfSetupPoli
data="{\"version\":0,\"core\":\"4,%s\"}" % (CORE_SYMBOL)
opts="--permission %s@active" % (eosioAccount.name)
trans=biosNode.pushMessage(eosioAccount.name, action, data, opts)
transId=Node.getTransId(trans[1])
Utils.Print("Wait for system init transaction to be in a block.")
if not biosNode.waitForTransInBlock(transId):
Utils.Print("ERROR: Failed to validate transaction %s in block on server port %d." % (transId, biosNode.port))
return None

Utils.Print("Cluster bootstrap done.")

Expand Down

0 comments on commit f2d077f

Please sign in to comment.