From 16a1404cfe85aca358791038c159181e70de35ed Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Sun, 5 Jul 2015 20:26:02 -0700 Subject: [PATCH] fixed inequality bug, loading catchup commits when shouldn't. --- consensus/reactor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/reactor.go b/consensus/reactor.go index 69544026..f4d503ab 100644 --- a/consensus/reactor.go +++ b/consensus/reactor.go @@ -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)