rpc: fix SeenCommit condition

This commit is contained in:
Ethan Buchman 2017-02-16 15:35:34 -05:00
parent bb5688b1be
commit a3898fae0f
1 changed files with 1 additions and 1 deletions

View File

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