mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 06:42:16 +00:00
fixed inequality bug, loading catchup commits when shouldn't.
This commit is contained in:
parent
b4605bc53a
commit
16a1404cfe
@ -542,7 +542,7 @@ OUTER_LOOP:
|
||||
|
||||
// Catchup logic
|
||||
// If peer is lagging by more than 1, send Validation.
|
||||
if prs.Height != 0 && rs.Height <= prs.Height+2 {
|
||||
if prs.Height != 0 && rs.Height >= prs.Height+2 {
|
||||
// Load the block validation for prs.Height,
|
||||
// which contains precommit signatures for prs.Height.
|
||||
validation := conR.blockStore.LoadBlockValidation(prs.Height)
|
||||
|
Loading…
x
Reference in New Issue
Block a user