ZcashFoundation / zebra

Zcash - Financial Privacy in Rust 🦓
https://zfnd.org/zebra/
Apache License 2.0
413 stars 106 forks source link

Update `getblock` RPC method #8446

Open mpguerra opened 6 months ago

mpguerra commented 6 months ago

Motivation

This is needed for zcashd deprecation

https://zcash.github.io/rpc/getblock.html

Scope

  1. Identify remaining work to fully implement
dismad commented 2 months ago

+1. I would like this method to match zcashd as much as possible. For example with block height when given a block hash.

conradoplg commented 1 month ago

Reported by pitmutt on Discord

Hello. I found that Zebra's response for RPC method getblock differs depending on whether you use a block height or a hash as the parameter. If you use a hash, the height field in the JSON response is missing.

Which seems the same as dismad's request