zebra/zebra-state/src/service
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
..
chain_tip Only fetch block headers from the database to answer headers requests (#4792) 2022-07-22 09:15:22 +10:00
check fix(clippy): Resolve nightly clippy lints (#6623) 2023-05-14 01:34:03 +00:00
finalized_state fix(security): Stop panicking on state RPC or block requests with very large heights (#6699) 2023-05-17 15:13:12 +00:00
non_finalized_state Leaves at least 1 block in the partial chain (#6552) 2023-04-20 21:06:23 +00:00
queued_blocks 3. change(state): Move the finalized queue to the StateService (#5152) 2022-09-16 13:53:40 +00:00
read security(state): Limit the number of non-finalized chains tracked by Zebra (#6447) 2023-04-04 01:05:21 +00:00
arbitrary.rs fix(test): Reduce verbose test logs (#5825) 2022-12-08 23:56:01 +00:00
block_iter.rs change(state): Write non-finalized blocks to the state in a separate thread, to avoid network and RPC hangs (#5257) 2022-10-11 19:25:45 +00:00
chain_tip.rs fix(rpc): Check that mempool transactions are valid for the state's chain info in getblocktemplate (#6416) 2023-04-03 23:22:07 +00:00
check.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
finalized_state.rs fix(security): Stop panicking on state RPC or block requests with very large heights (#6699) 2023-05-17 15:13:12 +00:00
non_finalized_state.rs feat(ui): Add a terminal-based progress bar to Zebra (#6235) 2023-04-13 08:42:17 +00:00
pending_utxos.rs change(state): Write finalized blocks to the state in a separate thread, to avoid network and RPC hangs (#5134) 2022-09-28 16:09:56 +00:00
queued_blocks.rs change(state): Stop re-downloading blocks that are in non-finalized side chains (#6335) 2023-03-24 07:10:07 +00:00
read.rs change(rpc): Add confirmations to getrawtransaction method response (#6287) 2023-03-26 23:53:44 +00:00
tests.rs change(state): Write non-finalized blocks to the state in a separate thread, to avoid network and RPC hangs (#5257) 2022-10-11 19:25:45 +00:00
watch_receiver.rs change(rpc): Return from long polling immediately when the chain tip changes (#5862) 2022-12-15 15:33:00 +00:00
write.rs security(state): Limit the number of non-finalized chains tracked by Zebra (#6447) 2023-04-04 01:05:21 +00:00