fixed inequality bug, loading catchup commits when shouldn't.

This commit is contained in:
Jae Kwon 2015-07-05 20:26:02 -07:00
parent b4605bc53a
commit 16a1404cfe
1 changed files with 1 additions and 1 deletions

View File

@ -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)