From 896e49d70d98b1b0bd8da326dab1bc16debc0677 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Tue, 24 Oct 2023 12:59:42 +0000 Subject: [PATCH 1/2] eth/filter: return error if from block > to Signed-off-by: jsvisa --- src/eth/filter.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/eth/filter.yaml b/src/eth/filter.yaml index 0138a4ee1..3c377cb86 100644 --- a/src/eth/filter.yaml +++ b/src/eth/filter.yaml @@ -8,6 +8,9 @@ name: Filter Identifier schema: $ref: '#/components/schemas/uint' + errors: + - code: -32000 + message: 'invalid from and to block combination: from > to' - name: eth_newBlockFilter summary: Creates a filter in the node, to notify when a new block arrives. params: [] @@ -62,3 +65,6 @@ name: Log objects schema: $ref: '#/components/schemas/FilterResults' + errors: + - code: -32000 + message: 'invalid from and to block combination: from > to' From 00ad9ceaa5dce557a119e5eeba94762c1a155da3 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Thu, 2 Nov 2023 13:12:30 +0000 Subject: [PATCH 2/2] eth/filter: invalid block range Signed-off-by: jsvisa --- src/eth/filter.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eth/filter.yaml b/src/eth/filter.yaml index 3c377cb86..ba6279a95 100644 --- a/src/eth/filter.yaml +++ b/src/eth/filter.yaml @@ -10,7 +10,7 @@ $ref: '#/components/schemas/uint' errors: - code: -32000 - message: 'invalid from and to block combination: from > to' + message: 'invalid block range params' - name: eth_newBlockFilter summary: Creates a filter in the node, to notify when a new block arrives. params: [] @@ -67,4 +67,4 @@ $ref: '#/components/schemas/FilterResults' errors: - code: -32000 - message: 'invalid from and to block combination: from > to' + message: 'invalid block range params'