|
@@ -389,6 +389,8 @@ func (api *PublicDebugAPI) AccountRange(blockNrOrHash rpc.BlockNumberOrHash, sta
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
return state.IteratorDump{}, err
|
|
return state.IteratorDump{}, err
|
|
|
}
|
|
}
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return state.IteratorDump{}, errors.New("either block number or block hash must be specified")
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if maxResults > AccountRangeMaxResults || maxResults <= 0 {
|
|
if maxResults > AccountRangeMaxResults || maxResults <= 0 {
|