Skip to content

Commit

Permalink
extra pingpong logs
Browse files Browse the repository at this point in the history
  • Loading branch information
algorandskiy committed Apr 19, 2024
1 parent 57e7c1f commit 3a7e767
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shared/pingpong/pingpong.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,12 +503,16 @@ func waitPendingTransactions(accounts []string, client *libgoal.Client) error {
fmt.Printf("failed to check pending transaction pool status : %v\n", err)
return err
}
if len(pendingTxns.TopTransactions) > 0 {
fmt.Printf("waiting for %d pending transactions to clear out for account %s\n", len(pendingTxns.TopTransactions), from)

Check warning on line 507 in shared/pingpong/pingpong.go

View check run for this annotation

Codecov / codecov/patch

shared/pingpong/pingpong.go#L506-L507

Added lines #L506 - L507 were not covered by tests
}
for _, txn := range pendingTxns.TopTransactions {
if txn.Txn.Sender.String() != from {
// we found a transaction where the receiver was the given account. We don't
// care about these.
continue
}
fmt.Printf("txn: %s\n", txn.Txn.ID())

Check warning on line 515 in shared/pingpong/pingpong.go

View check run for this annotation

Codecov / codecov/patch

shared/pingpong/pingpong.go#L515

Added line #L515 was not covered by tests
// the transaction is still in the transaction pool.
// this would wait for the next round, when we will perform the check again.
waitForNextRoundOrSleep(client, 500*time.Millisecond)
Expand Down

0 comments on commit 3a7e767

Please sign in to comment.