-
Notifications
You must be signed in to change notification settings - Fork 28
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
Allow to override chainstate options for regtest #301
Conversation
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.
Adding some initial observations, will have a proper look next week
@@ -107,7 +107,7 @@ def __init__(self, i, datadir, *, chain, rpchost, timewait, timeout_factor, bitc | |||
self.args = [ | |||
self.binary, | |||
"--datadir={}".format(datadir_path), | |||
"run", | |||
"regtest", |
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.
Cool I kind of like the command-based interface.
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.
Glad to hear! I was afraid that no one would like this approach.
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.
Adding some more comments. Approving now but I think the coin_decimals
one should be addressed or at least discussed.
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 minimal requirement to get this PR ready is to support testnet configuration too.
I also don't see tests for ChainConfig settings either, which I'm not sure about. Do we want to have tests for that?
@TheQuantumPhysicist I'm not sure about the tests. Ideally I would prefer these changes to be tested in two ways:
|
Actually with functional tests should happen sooner or later. If you think you can do it (in this PR or another one), I'm all for that. Again, I think this is a good opportunity to practice a little with functional tests. After all, there has to be some form of testing for these command line arguments. |
I suppose I can do that, but I would prefer to work on functional tests in a separate pull request. |
No description provided.