Zebra/zebra-rpc
teor b1ce0e0894
fix(security): Stop panicking on state RPC or block requests with very large heights (#6699)
* fix panic in height

* Update security comments and turn literals into constants

* Add a test-only assertion that the maximum output index can't ever be reached

* Fix a MISSING_BLOCK_ERROR_CODE that was mistakenly 0

* Add production RPC tests with excessive heights

* Add and update snapshots for production RPCs

* Add excessive height tests for most getblocktemplate RPCs

* Use correct snapshot names by running `cargo insta review`

---------

Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
2023-05-17 15:13:12 +00:00
..
src fix(security): Stop panicking on state RPC or block requests with very large heights (#6699) 2023-05-17 15:13:12 +00:00
Cargo.toml build(deps): bump serde from 1.0.162 to 1.0.163 (#6678) 2023-05-16 23:54:09 +00:00