Skip to content

Commit

Permalink
GH-2364 Verify needed trx processed before continuing
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Mar 30, 2024
1 parent 5b83d32 commit c300efe
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/nodeos_retry_transaction_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,10 @@
startTime = time.perf_counter()
Print("Create new accounts via %s" % (cluster.eosioAccount.name))
for account in accounts:
trans = node.createInitializeAccount(account, cluster.eosioAccount, stakedDeposit=0, waitForTransBlock=(account == accounts[-1]), stakeNet=1000, stakeCPU=1000, buyRAM=1000, exitOnError=True)
trans = node.createInitializeAccount(account, cluster.eosioAccount, stakedDeposit=0, waitForTransBlock=False, stakeNet=1000, stakeCPU=1000, buyRAM=1000, exitOnError=True)
checkTransIds.append(Node.getTransId(trans))

node.waitForTransactionsInBlock(checkTransIds)
nextTime = time.perf_counter()
Print("Create new accounts took %s sec" % (nextTime - startTime))
startTime = nextTime
Expand All @@ -146,18 +147,20 @@
for account in accounts:
transferAmount="1000.0000 {0}".format(CORE_SYMBOL)
Print("Transfer funds %s from account %s to %s" % (transferAmount, cluster.eosioAccount.name, account.name))
trans = node.transferFunds(cluster.eosioAccount, account, transferAmount, "test transfer", waitForTransBlock=(account == accounts[-1]), reportStatus=False)
trans = node.transferFunds(cluster.eosioAccount, account, transferAmount, "test transfer", waitForTransBlock=False, reportStatus=False)
checkTransIds.append(Node.getTransId(trans))

node.waitForTransactionsInBlock(checkTransIds)
nextTime = time.perf_counter()
Print("Transfer funds took %s sec" % (nextTime - startTime))
startTime = nextTime

Print("Delegate Bandwidth to new accounts")
for account in accounts:
trans=node.delegatebw(account, 200.0000, 200.0000, waitForTransBlock=(account == accounts[-1]), exitOnError=True, reportStatus=False)
trans=node.delegatebw(account, 200.0000, 200.0000, waitForTransBlock=False, exitOnError=True, reportStatus=False)
checkTransIds.append(Node.getTransId(trans))

node.waitForTransactionsInBlock(checkTransIds)
nextTime = time.perf_counter()
Print("Delegate Bandwidth took %s sec" % (nextTime - startTime))
startTime = nextTime
Expand Down

0 comments on commit c300efe

Please sign in to comment.