zebra/zebra-rpc/src
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
..
methods fix(rpc): Use populated state in more RPC snapshot tests (#6700) 2023-05-17 18:50:31 +00:00
queue change(rpc): Add confirmations to getrawtransaction method response (#6287) 2023-03-26 23:53:44 +00:00
server
tests change(rpc): Add confirmations to getrawtransaction method response (#6287) 2023-03-26 23:53:44 +00:00
config.rs
constants.rs
lib.rs
methods.rs fix(security): Stop panicking on state RPC or block requests with very large heights (#6699) 2023-05-17 15:13:12 +00:00
queue.rs change(rpc): Add confirmations to getrawtransaction method response (#6287) 2023-03-26 23:53:44 +00:00
server.rs
tests.rs