T166: Cleanup redudant code since config.GetChainParams() can be used in place of the CChainParams parameter.
Details
Details
- Reviewers
deadalnix - Group Reviewers
Restricted Project - Commits
- rSTAGING8c9015067129: Remove redundant CChainParams from ConnectBlock
rABC8c9015067129: Remove redundant CChainParams from ConnectBlock
make check
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
src/validation.cpp | ||
---|---|---|
1904 ↗ | (On Diff #2672) | Sounds like you have a lot of GetChainParams in there. You should probably assign this to a local variable. |
src/validation.cpp | ||
---|---|---|
1904 ↗ | (On Diff #2710) | const Consensus::Params &consensusParams = config.GetChainParams().GetConsensus(); |
src/validation.cpp | ||
---|---|---|
1904 ↗ | (On Diff #2710) | Updated my diff in the same time that you commented on this. I saw it in Matias's diff and liked it better. :) |