Some RPC methods body params should be validated before reaching backend nodes.
One use-case we can come up with is block range, it would be nice if we could validate and return an error if requested block ranges exceed the configured number allowed.
Possible ideas are
- using the name
validate middleware for future extendability and rename existing validate middleware to debug for example.
- building another middleware called
block_range
Some RPC methods body params should be validated before reaching backend nodes.
One use-case we can come up with is block range, it would be nice if we could validate and return an error if requested block ranges exceed the configured number allowed.
Possible ideas are
validatemiddleware for future extendability and rename existingvalidatemiddleware todebugfor example.block_range