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
- Branch
- cblock
- Lint
Lint Passed Severity Location Code Message Auto-Fix src/validation.cpp:1 CFMT Code style violation - Unit
No Test Coverage - Build Status
Buildable 1745 Build 1745: arc lint + arc unit
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 | const Consensus::Params &consensusParams = config.GetChainParams().GetConsensus(); |
src/validation.cpp | ||
---|---|---|
1904 | Updated my diff in the same time that you commented on this. I saw it in Matias's diff and liked it better. :) |