rpc: fix SeenCommit condition
This commit is contained in:
parent
bb5688b1be
commit
a3898fae0f
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue