Browse Source

rpc: fix SeenCommit condition

pull/405/head
Ethan Buchman 8 years ago
parent
commit
a3898fae0f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      rpc/core/blocks.go

+ 1
- 1
rpc/core/blocks.go 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
}


Loading…
Cancel
Save