From a3898fae0f5b8037bc28c3f71f76ad660a6162d8 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Thu, 16 Feb 2017 15:35:34 -0500 Subject: [PATCH] rpc: fix SeenCommit condition --- rpc/core/blocks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/core/blocks.go b/rpc/core/blocks.go index 5006f8973..65e47d125 100644 --- a/rpc/core/blocks.go +++ b/rpc/core/blocks.go @@ -60,7 +60,7 @@ func Commit(height int) (*ctypes.ResultCommit, error) { // If the next block has not been committed yet, // use a non-canonical commit - if height == storeHeight+1 { + if height == storeHeight { commit := blockStore.LoadSeenCommit(height) return &ctypes.ResultCommit{header, commit, false}, nil }