eqlabs / pathfinder

A Starknet full node written in Rust
https://eqlabs.github.io/pathfinder/
Other
619 stars 227 forks source link

Only deserialize params once in websocket handlers #2037

Closed sistemd closed 3 months ago

sistemd commented 3 months ago

Currently the websocket handlers always deserialize the input params twice: once to check the kind field, and a second time based on the kind field. This could be fixed by simply using a proper enum instead.