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
-
Overview
This discussion:
stacks-node
are loaded at disparate placesBackground
Parameters that govern how
stacks-node
will run are mostly specified in the objectConfig
.Config
is created from the user-supplied objectConfigFile
in the factory methodProblems Identified
Drawbacks
When parameters enter execution at arbitrary points:
Proposal
Observation:
Config::from_config_file
Therefore:
Config::from_config_file
is doneProposed Communication Flow Between Stacks Engineers
from_config_file
from_config_file
they are goodfrom_config_file
Examples of Disparate Parameters Load Sites
In this section, we look at the disparate load sites of:
BurnchainParameters
PoxConstants
get_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