mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-25 02:31:46 +00:00
better error message for unknown RPC method calls
This commit is contained in:
@ -32,7 +32,7 @@ func BlockchainInfo(minHeight, maxHeight uint) (*ResponseBlockchainInfo, error)
|
||||
|
||||
func GetBlock(height uint) (*ResponseGetBlock, error) {
|
||||
if height == 0 {
|
||||
return nil, fmt.Errorf("height must be greater than 1")
|
||||
return nil, fmt.Errorf("height must be greater than 0")
|
||||
}
|
||||
if height > blockStore.Height() {
|
||||
return nil, fmt.Errorf("height must be less than the current blockchain height")
|
||||
|
Reference in New Issue
Block a user