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

blockchain: Add ReconsiderBlock() #2196

Closed Crypt-iQ closed 1 week ago

Crypt-iQ commented 3 weeks ago

Adds ReconsiderBlock() on blockchain that will clear up any block validation statuses and re-validate the block. If the block is part of a longer chain, then the chain will reorganize to that chain.

Replaces #2181

coveralls commented 3 weeks ago

Pull Request Test Coverage Report for Build 9423714813

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
blockchain/chain.go 129 169 76.33%
<!-- Total: 129 169 76.33% -->
Files with Coverage Reduction New Missed Lines %
blockchain/chain.go 3 74.78%
connmgr/connmanager.go 3 86.27%
peer/peer.go 9 73.86%
<!-- Total: 15 -->
Totals Coverage Status
Change from base Build 9348961734: 0.04%
Covered Lines: 29680
Relevant Lines: 52018

💛 - Coveralls
kcalvinalvin commented 1 week ago

Verified that this PR is just a cleanup for the commits:

c14546b369dde37d868985f1112468b70d52967f 7c04bd86ac54fbe404e1085e569a35d83ea370e2

from #2181

Looks fine for me