-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Clean up chainparams some more. #6473
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
Conversation
|
No strong opinion, but looks good to me. |
|
ACK (makes sense to remove duplicated parameter default values and the const pass by ref). |
|
I'd prefer to take this one step further: remove the default arguments from the outer |
8b4eeb2 to
032e8e5
Compare
|
I agree - I've updated the patch. When it is finally reviewed and ready, I will squash the commits. |
|
utACK |
|
ut ACK. Agreed that the defaults there are strange. |
|
@domob1812 can you squash please? |
74e9f79 to
5fb5c9b
Compare
|
Done. |
Clean up the code in chainparams a bit more after the recent refactorings. In particular, make sure the structure of the "RegTest" params matches the structure of the other classes. This makes the code clearer to read. Also remove redundant values of the genesis block in always-specified optional arguments and mark variable/argument as "const".
5fb5c9b Clean up chainparams some more. (Daniel Kraft)
Bitcoin 0.12 chainparams cleanups Cherry-picked from the following upstream PRs: - bitcoin/bitcoin#6222 - bitcoin/bitcoin#6381 - bitcoin/bitcoin#6473 - bitcoin/bitcoin#6242 Part of #2074.
Bitcoin 0.12 chainparams cleanups Cherry-picked from the following upstream PRs: - bitcoin/bitcoin#6222 - bitcoin/bitcoin#6381 - bitcoin/bitcoin#6473 - bitcoin/bitcoin#6242 Part of #2074.
Clean up the code in chainparams a bit more after the recent refactorings. In particular, make sure the structure of the "RegTest" params matches the structure of the other classes. This makes the code clearer to read.
Also remove redundant values of the genesis block in always-specified optional arguments and mark variable/argument as "const".