-
Notifications
You must be signed in to change notification settings - Fork 474
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
tools: pingpong improvements #4294
Conversation
can configure one pingpong to deliver a weighted mix of traffic libgoal can optionally keep cache of SuggestedParams so that it doesn't query before every construct-txn pingpong can use deterministic accounts that are reusable across pingpong runs
Codecov Report
@@ Coverage Diff @@
## master #4294 +/- ##
==========================================
- Coverage 55.25% 54.00% -1.26%
==========================================
Files 398 401 +3
Lines 50297 51467 +1170
==========================================
+ Hits 27793 27795 +2
- Misses 20171 21336 +1165
- Partials 2333 2336 +3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
allows two pingpongs to do e.g. accounts 0..49 and 50..99
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will the preconfigured accounts have their balances automatically adjusted?
runCmd.Flags().Int64Var(&randSeed, "seed", 0, "input to math/rand.Seed(), defaults to time.Now().UnixNano()") | ||
runCmd.Flags().BoolVar(&deterministicKeys, "deterministicKeys", false, "Draw from set of netgoal-created accounts using deterministic keys") | ||
runCmd.Flags().Uint32Var(&generatedAccountsCount, "genaccounts", 0, "The total number of accounts pre-generated by netgoal") | ||
runCmd.Flags().StringVar(&generatedAccountSampleMethod, "gensamplemethod", "random", "The method of sampling from the total # of pre-generated accounts") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do the pre-generated accounts get automatically topped off from a source account?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's code to make low balance accounts the destination of natural traffic, so they'll tend to refill.
@@ -90,6 +111,8 @@ var DefaultConfig = PpConfig{ | |||
Rekey: false, | |||
MaxRuntime: 0, | |||
|
|||
ProgramProbability: 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The probability of using a LogicSig
Summary
can configure one pingpong to deliver a weighted mix of traffic
libgoal can optionally keep cache of SuggestedParams so that it doesn't query before every construct-txn
pingpong can use deterministic accounts that are reusable across pingpong runs
deterministic account code by @cce
Test Plan
pingpong
is a test tool I have been using to test algod private networks