Skip to content

Count every processed transaction toward TotalCount - #266

Open
damilolaedwards wants to merge 1 commit into
ethpandaops:masterfrom
damilolaedwards:fix/txscenario-count-without-notify
Open

Count every processed transaction toward TotalCount#266
damilolaedwards wants to merge 1 commit into
ethpandaops:masterfrom
damilolaedwards:fix/txscenario-count-without-notify

Conversation

@damilolaedwards

Copy link
Copy Markdown
Contributor

RunTransactionScenario only counted a transaction toward TotalCount if it returned an error or had called NotifySubmitted. A scenario that completes successfully without ever calling NotifySubmitted (it may handle its own logging some other way) never advanced the count, so the run kept going past TotalCount instead of stopping at the configured limit. The taskrunner scenario hits this today: its --count flag does not actually bound the run.

Counts every returned call instead. Scenarios that do call NotifySubmitted are unaffected, since those calls were already being counted either way.

RunTransactionScenario only counted a transaction toward TotalCount if it
returned an error or had called NotifySubmitted. A scenario that completes
successfully without ever calling NotifySubmitted (it may handle its own
logging some other way) never advanced the count, so the run kept going
past TotalCount instead of stopping at the configured limit.

Count every returned call instead. Scenarios that do call NotifySubmitted
are unaffected, since those calls were already being counted either way.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant