Browse Source

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

pull/102/head
Jae Kwon 9 years ago
parent
commit
16a1404cfe
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      consensus/reactor.go

+ 1
- 1
consensus/reactor.go View File

@ -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…
Cancel
Save