Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #7875 from EOSIO/fix-tests-bootstrap-1.8
Browse files Browse the repository at this point in the history
Fix tests bootstrap - 1.8
  • Loading branch information
heifner authored Sep 9, 2019
2 parents aec5bde + 22401e1 commit e864b0e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/Cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -1289,10 +1289,14 @@ def bootstrap(self, biosNode, totalNodes, prodCount, totalProducers, pfSetupPoli
if not biosNode.waitForTransInBlock(transId):
Utils.Print("ERROR: Failed to validate transaction %s got rolled into a block on server port %d." % (transId, biosNode.port))
return None
action="init"
data="{\"version\":0,\"core\":\"4,%s\"}" % (CORE_SYMBOL)
opts="--permission %s@active" % (eosioAccount.name)
trans=biosNode.pushMessage(eosioAccount.name, action, data, opts)

# Only call init if the system contract is loaded
if loadSystemContract:
action="init"
data="{\"version\":0,\"core\":\"4,%s\"}" % (CORE_SYMBOL)
opts="--permission %s@active" % (eosioAccount.name)
trans=biosNode.pushMessage(eosioAccount.name, action, data, opts)

Utils.Print("Cluster bootstrap done.")

return biosNode
Expand Down

0 comments on commit e864b0e

Please sign in to comment.