zebra/zebra-rpc
Arya 1e46914131
add(rpc): Adds `getblockheader` RPC method (#8967)
* Adds getblockheader RPC method

* Updates snapshots, adds hash/height/next_block_hash fields to verbose response

* updates getblock snapshot

* updates getblockheader response type to hex-encode fields, adds ToHex impl for sapling::tree::Root, adds snapshot and vector tests for new RPC method, adds snapshots.

* rustfmt

* fixes snapshots, matches zcashd more closely

* fixes vectors test

* updates lwd failure messages (probably doesn't matter, but seems better to handle it now than risk debugging it later)

* fixes getblock_rpc test, fixes/reverses finalsaplingroot field byte-order.

* fixes vector test, addresses remaining differences with zcashd (except the `chainwork` field), updates snapshots, and avoids a possible panic when there's a chain reorg between state queries.

* Adds a comment noting that the `relative_to_network()` method was copied from zcashd

* Apply suggestions from code review

Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>

---------

Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2024-11-18 12:16:27 +00:00
..
proto add(rpc): Add a tonic server in zebra-rpc (#8674) 2024-07-16 12:25:31 +00:00
qa feat(rpc): Cookie auth system for the RPC endpoint (#8900) 2024-10-22 09:45:26 +00:00
src add(rpc): Adds `getblockheader` RPC method (#8967) 2024-11-18 12:16:27 +00:00
Cargo.toml chore: Release v2.0.1 (#8979) 2024-10-30 11:41:41 -03:00
build.rs build(deps): bump the prod group across 1 directory with 24 updates (#8899) 2024-10-07 20:11:13 +00:00