diff --git a/apiserver/controllers/block.go b/apiserver/controllers/block.go index 0024992a8..a5282db7e 100644 --- a/apiserver/controllers/block.go +++ b/apiserver/controllers/block.go @@ -55,7 +55,7 @@ func GetBlockByHashHandler(blockHash string) (interface{}, error) { // GetBlocksHandler searches for all blocks func GetBlocksHandler(order string, skip uint64, limit uint64) (interface{}, error) { if limit > maxGetBlocksLimit { - return nil, httpserverutils.NewHandlerError(http.StatusUnprocessableEntity, errors.Errorf("The maximum allowed value for the limit is %d", maxGetTransactionsLimit)) + return nil, httpserverutils.NewHandlerError(http.StatusUnprocessableEntity, errors.Errorf("The maximum allowed value for the limit is %d", maxGetBlocksLimit)) } blocks := []*dbmodels.Block{} db, err := database.DB()