-
Notifications
You must be signed in to change notification settings - Fork 118
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
Convert e2e tmpnet #1249
Convert e2e tmpnet #1249
Conversation
Depends on ava-labs/avalanchego#3290 to make sure tmpnet passes the subnet config correctly |
factory = auth.NewED25519Factory(priv) | ||
|
||
gen := genesis.Default() | ||
gen.WindowTargetUnits = fees.Dimensions{18446744073709551615, 18446744073709551615, 18446744073709551615, 18446744073709551615, 18446744073709551615} |
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 are these numbers based off of? They seem weirdly precise
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.
Good call out, added a comment here and for MaxBlockUnits
Nodes: nodes, | ||
DefaultFlags: tmpnet.FlagsMap{ | ||
config.ProposerVMUseCurrentHeightKey: true, | ||
config.InboundThrottlerVdrAllocSizeKey: 10737418240, |
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.
Also wondering where these defaults come from
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.
These come from the existing code. Some of them are arbitrary or determined by iterating to the necessary parameters to make sure AvalancheGo does not overthrottle.
gen.MaxBlockUnits = fees.Dimensions{1800000, 18446744073709551615, 18446744073709551615, 18446744073709551615, 18446744073709551615} | ||
// Set WindowTargetUnits to MaxUint64 for all dimensions to iterate full mempool during block building. | ||
gen.WindowTargetUnits = fees.Dimensions{math.MaxUint64, math.MaxUint64, math.MaxUint64, math.MaxUint64, math.MaxUint64} | ||
// Set all lmiits to MaxUint64 to avoid limiting block size for all dimensions except bandwidth. Must limit bandwidth to avoid building |
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.
nit: typo on limits
This PR migrates from using avalanche-network-runner to tmpnet for the existing e2e tests and run script to start a local network w/ MorpheusVM.
This enables starting a network running tmpnet w/ the existing run script:
Devs can also enter the tmpnet directory printed out to view the configuration of the tmpnet and explore the logs produced by the nodes:
Outputs:
will output the logs produced by the given nodeID from the C-Chain.
Devs can stop the tmpnet network using the existing stop script:
To run the test suite from the MorpheusVM directory, developers can execute the run script with the environment variable
MODE=test
:Additionally, the script now passes in any additional arguments to test execution, so that you can pass in standard ginkgo filtering arguments.
For example, to execute only the
GetNetwork
e2e test: