zebra/zebra-rpc/src/methods/tests/snapshot/snapshots
teor cb6667059a
fix(rpc): Use populated state in more RPC snapshot tests (#6700)
* 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`

* Fix some RPC tests so they use a populated state

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

---------

Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
2023-05-17 18:50:31 +00:00
..
get_block_count@mainnet_10.snap
get_block_count@testnet_10.snap
get_block_hash_invalid_excessive_height@mainnet_10.snap fix(security): Stop panicking on state RPC or block requests with very large heights (#6699) 2023-05-17 15:13:12 +00:00
get_block_hash_invalid_excessive_height@testnet_10.snap fix(security): Stop panicking on state RPC or block requests with very large heights (#6699) 2023-05-17 15:13:12 +00:00
get_block_hash_valid@mainnet_10.snap fix(security): Stop panicking on state RPC or block requests with very large heights (#6699) 2023-05-17 15:13:12 +00:00
get_block_hash_valid@testnet_10.snap fix(security): Stop panicking on state RPC or block requests with very large heights (#6699) 2023-05-17 15:13:12 +00:00
get_block_subsidy_excessive_height@mainnet_10.snap fix(security): Stop panicking on state RPC or block requests with very large heights (#6699) 2023-05-17 15:13:12 +00:00
get_block_subsidy_excessive_height@testnet_10.snap fix(security): Stop panicking on state RPC or block requests with very large heights (#6699) 2023-05-17 15:13:12 +00:00
get_block_subsidy_future_height@mainnet_10.snap fix(security): Stop panicking on state RPC or block requests with very large heights (#6699) 2023-05-17 15:13:12 +00:00
get_block_subsidy_future_height@testnet_10.snap fix(security): Stop panicking on state RPC or block requests with very large heights (#6699) 2023-05-17 15:13:12 +00:00
get_block_subsidy_tip_height@mainnet_10.snap fix(security): Stop panicking on state RPC or block requests with very large heights (#6699) 2023-05-17 15:13:12 +00:00
get_block_subsidy_tip_height@testnet_10.snap fix(security): Stop panicking on state RPC or block requests with very large heights (#6699) 2023-05-17 15:13:12 +00:00
get_block_template_basic.coinbase_tx@mainnet_10.snap
get_block_template_basic.coinbase_tx@testnet_10.snap
get_block_template_basic@mainnet_10.snap
get_block_template_basic@testnet_10.snap
get_block_template_invalid-proposal@mainnet_10.snap
get_block_template_invalid-proposal@testnet_10.snap
get_block_template_long_poll.coinbase_tx@mainnet_10.snap
get_block_template_long_poll.coinbase_tx@testnet_10.snap
get_block_template_long_poll@mainnet_10.snap
get_block_template_long_poll@testnet_10.snap
get_block_template_proposal@mainnet_10.snap
get_block_template_proposal@testnet_10.snap
get_difficulty_invalid_populated@mainnet_10.snap fix(rpc): Use populated state in more RPC snapshot tests (#6700) 2023-05-17 18:50:31 +00:00
get_difficulty_invalid_populated@testnet_10.snap fix(rpc): Use populated state in more RPC snapshot tests (#6700) 2023-05-17 18:50:31 +00:00
get_difficulty_valid_mock@mainnet_10.snap fix(rpc): Use populated state in more RPC snapshot tests (#6700) 2023-05-17 18:50:31 +00:00
get_difficulty_valid_mock@testnet_10.snap fix(rpc): Use populated state in more RPC snapshot tests (#6700) 2023-05-17 18:50:31 +00:00
get_mining_info@mainnet_10.snap
get_mining_info@testnet_10.snap
get_network_sol_ps@mainnet_10.snap
get_network_sol_ps@testnet_10.snap
get_peer_info@mainnet_10.snap
get_peer_info@testnet_10.snap
snapshot_rpc_submit_block_invalid@mainnet_10.snap
snapshot_rpc_submit_block_invalid@testnet_10.snap
validate_address_basic@mainnet_10.snap
validate_address_basic@testnet_10.snap
validate_address_invalid@mainnet_10.snap
validate_address_invalid@testnet_10.snap
z_list_unified_receivers_ua1@mainnet_10.snap
z_list_unified_receivers_ua1@testnet_10.snap
z_list_unified_receivers_ua2@mainnet_10.snap
z_list_unified_receivers_ua2@testnet_10.snap
z_validate_address_basic@mainnet_10.snap
z_validate_address_basic@testnet_10.snap
z_validate_address_invalid@mainnet_10.snap
z_validate_address_invalid@testnet_10.snap