-
Notifications
You must be signed in to change notification settings - Fork 105
Validate block_to is not greater than chain tip #1866
Copy link
Copy link
Open
Description
In some sync endpoints we receive a block range that gets handled like so:
node/crates/store/src/server/rpc_api.rs
Lines 98 to 100 in 08e47a4
| let block_range = | |
| read_block_range::<SyncNullifiersError>(request.block_range, "SyncNullifiersRequest")? | |
| .into_inclusive_range::<SyncNullifiersError>(&chain_tip)?; |
We could modify the read_block_range to validate that the block_to is not greater than the chain tip.
Context: #1843 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels