zebra/zebra-state/src
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
..
service fix(security): Stop panicking on state RPC or block requests with very large heights (#6699) 2023-05-17 15:13:12 +00:00
tests feat(elasticsearch): Export block data to elasticsearch database (#6274) 2023-03-13 21:13:30 +00:00
arbitrary.rs change(mempool) reject transactions with spent outpoints or nullifiers (#5434) 2022-10-24 19:48:45 +00:00
config.rs feat(ui): Add a terminal-based progress bar to Zebra (#6235) 2023-04-13 08:42:17 +00:00
constants.rs security(state): Limit the number of non-finalized chains tracked by Zebra (#6447) 2023-04-04 01:05:21 +00:00
error.rs Tests error conversions (#6665) 2023-05-16 21:06:46 +00:00
lib.rs fix(security): Stop panicking on state RPC or block requests with very large heights (#6699) 2023-05-17 15:13:12 +00:00
request.rs change(state): Stop re-downloading blocks that are in non-finalized side chains (#6335) 2023-03-24 07:10:07 +00:00
response.rs change(rpc): Add confirmations to getrawtransaction method response (#6287) 2023-03-26 23:53:44 +00:00
service.rs fix(rpc): Omit transactions with transparent coinbase spends that are immature at the next block height from block templates (#6510) 2023-04-18 03:43:39 +00:00
tests.rs fix(diagnostics): Hex-encode debug format of commitments, nonces, and nullifiers (#5960) 2023-01-17 13:57:22 +00:00