mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-29 16:52:15 +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
|
// Catchup logic
|
||||||
// If peer is lagging by more than 1, send Validation.
|
// 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,
|
// Load the block validation for prs.Height,
|
||||||
// which contains precommit signatures for prs.Height.
|
// which contains precommit signatures for prs.Height.
|
||||||
validation := conR.blockStore.LoadBlockValidation(prs.Height)
|
validation := conR.blockStore.LoadBlockValidation(prs.Height)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user