Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IF: Test: Verify needed trx processed before continuing #2365

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading