[lbry] work around existing bug with block validation flags
This commit is contained in:
parent
92a934df53
commit
0f48f40cd7
1 changed files with 1 additions and 1 deletions
|
@ -1723,7 +1723,7 @@ func (b *BlockChain) reconsiderBlock(hash *chainhash.Hash) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// No need to reconsider, it is already valid.
|
// 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)
|
err := fmt.Errorf("block %s is already valid", hash)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue