From 0f48f40cd7a4aac4ebb3c7ceb2c612fd1127fee6 Mon Sep 17 00:00:00 2001 From: Brannon King Date: Thu, 30 Dec 2021 09:50:16 -0500 Subject: [PATCH] [lbry] work around existing bug with block validation flags --- blockchain/chain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockchain/chain.go b/blockchain/chain.go index 70f6e7a7..9a6ec216 100644 --- a/blockchain/chain.go +++ b/blockchain/chain.go @@ -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 }