Organizing the Loading and Checking of Input Parameters to stacks-node
#3411
gregorycoppola
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
|
This is already being handled here: #3409 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Overview
This discussion:
stacks-nodeare loaded at disparate placesBackground
Parameters that govern how
stacks-nodewill run are mostly specified in the objectConfig.Configis created from the user-supplied objectConfigFilein the factory methodProblems Identified
Drawbacks
When parameters enter execution at arbitrary points:
Proposal
Observation:
Config::from_config_fileTherefore:
Config::from_config_fileis doneProposed Communication Flow Between Stacks Engineers
from_config_filefrom_config_filethey are goodfrom_config_fileExamples of Disparate Parameters Load Sites
In this section, we look at the disparate load sites of:
BurnchainParametersPoxConstantsget_bitcoin_stacks_epochs::Vec<StacksEpoch>Note that, in order to check constraints for #3407, we had to compare these three structures.
Config::from_config_file
BurnchainParameters::from_params
PoxConstants::new
trace 1
trace 2
get_bitcoin_stacks_epochs
Beta Was this translation helpful? Give feedback.
All reactions