-
Notifications
You must be signed in to change notification settings - Fork 114
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
AIP forkproperties #710
AIP forkproperties #710
Conversation
b58d21d
to
fc6fc9e
Compare
fc6fc9e
to
0dc8939
Compare
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.
Seems good overall. Have one question and a few minor/optional suggestions.
@@ -214,6 +227,7 @@ private void updateNetworkExecPaths() { | |||
networkConfigDir = new File(CONFIG_DIR, network); | |||
baseConfigFile = new File(networkConfigDir, configFileName); | |||
baseGenesisFile = new File(networkConfigDir, genesisFileName); | |||
baseForkFile = new File(networkConfigDir, forkFileName); |
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 fork files need to be initialized for the case where the config files reside directly in the config folder as used by old kernels (implemented in else
clause at line 210 above). I propose that we assume that anyone using the old config location takes the time to copy the fork.properties
file.
modPrecompiled/test/org/aion/precompiled/contracts/Blake2bHashTest.java
Outdated
Show resolved
Hide resolved
@@ -102,6 +102,11 @@ | |||
private static final File mainnetGenesis = new File(MAIN_CONFIG_PATH, genesisFileName); | |||
private static final File testnetGenesis = new File(TEST_CONFIG_PATH, genesisFileName); | |||
|
|||
private static final File fork = new File(TEST_RESOURCE_DIR, forkFileName); | |||
private static final File oldFork = new File(CONFIG_PATH, forkFileName); |
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.
need a test for behavior with old kernels config using the variable above
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.
disable to support the old config compatibility for the fork. And will put it in the release note.
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.
handled config migration in #718
Config migration
Move modBoost/resource to config
Notice
It is not allowed to submit your PR to the master branch directly, please submit your PR to the master-pre-merge branch.
Description
Please include a brief summary of the change that this pull request proposes. Include any relevant motivation and context. List any dependencies required for this change.
Fixes Issue # .
Type of change
Insert x into the following checkboxes to confirm (eg. [x]):
Testing
Please describe the tests you used to validate this pull request. Provide any relevant details for test configurations as well as any instructions to reproduce these results.
Verification
Insert x into the following checkboxes to confirm (eg. [x]):