eqlabs / pathfinder

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

bug(json-rpc): `from_block` to `pending` and `to_block` to `none` should return events from pending block #2194

Closed lambda-0x closed 2 months ago

lambda-0x commented 2 months ago

"from_block": pending -> no events "from_block": pending, "to_block": pending -> events from pending block

intuitively i think rpc should return events from pending block, but i can understand if you want to be strict with requirements to request pending block.

https://github.com/user-attachments/assets/5fc8381b-4d40-40bb-ad67-0d5734b1aa41