mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 05:56:45 +01:00
rpc: fix bad method error for batch requests
If a batch request contained an invalid method, the server would reply with a non-batch error response. Fix this by tracking an error for each batch element.
This commit is contained in:
@@ -88,6 +88,7 @@ type rpcRequest struct {
|
||||
id interface{}
|
||||
isPubSub bool
|
||||
params interface{}
|
||||
err RPCError // invalid batch element
|
||||
}
|
||||
|
||||
// RPCError implements RPC error, is add support for error codec over regular go errors
|
||||
|
||||
Reference in New Issue
Block a user