[lbry] work around existing bug with block validation flags

This commit is contained in:
Brannon King 2021-12-30 09:50:16 -05:00
parent 92a934df53
commit 0f48f40cd7

View file

@ -1723,7 +1723,7 @@ func (b *BlockChain) reconsiderBlock(hash *chainhash.Hash) error {
}
// No need to reconsider, it is already valid.
if node.status.KnownValid() {
if node.status.KnownValid() && !node.status.KnownInvalid() { // second clause works around old bug
err := fmt.Errorf("block %s is already valid", hash)
return err
}