mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-10-14 00:59:33 +00:00
[NOD-457] Fix error message (#486)
This commit is contained in:
parent
8cbc6670cc
commit
9a1c2e2641
@ -55,7 +55,7 @@ func GetBlockByHashHandler(blockHash string) (interface{}, error) {
|
|||||||
// GetBlocksHandler searches for all blocks
|
// GetBlocksHandler searches for all blocks
|
||||||
func GetBlocksHandler(order string, skip uint64, limit uint64) (interface{}, error) {
|
func GetBlocksHandler(order string, skip uint64, limit uint64) (interface{}, error) {
|
||||||
if limit > maxGetBlocksLimit {
|
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{}
|
blocks := []*dbmodels.Block{}
|
||||||
db, err := database.DB()
|
db, err := database.DB()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user