btcsuite / btcd

An alternative full node bitcoin implementation written in Go (golang)
https://github.com/btcsuite/btcd/blob/master/README.md
ISC License
6.09k stars 2.31k forks source link

main, rpcclient, integration: add rpccalls for invalidate and reconsiderblock #2183

Closed kcalvinalvin closed 1 week ago

kcalvinalvin commented 1 month ago

Adds rpc calls for the invalidate and reconsiderblock methods on BlockChain.

Depends on #2155 and #2181

coveralls commented 1 month ago

Pull Request Test Coverage Report for Build 8958336442

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
blockchain/fullblocktests/generate.go 41 42 97.62%
blockchain/internal/testhelper/common.go 105 113 92.92%
rpcserver.go 0 26 0.0%
blockchain/chain.go 197 250 78.8%
<!-- Total: 428 516 82.95% -->
Files with Coverage Reduction New Missed Lines %
connmgr/connmanager.go 1 86.27%
blockchain/chain.go 3 74.67%
<!-- Total: 4 -->
Totals Coverage Status
Change from base Build 8881487645: 0.3%
Covered Lines: 29748
Relevant Lines: 52001

💛 - Coveralls
Roasbeef commented 1 week ago

Replaced by https://github.com/btcsuite/btcd/pull/2197#pullrequestreview-2131474805