ZcashFoundation / zebra

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

getblock: return the `chainSupply` field #9021

Closed conradoplg closed 6 days ago

conradoplg commented 1 week ago

Motivation

Support the chainSupply field in the getblock RPC return

Specifications

https://github.com/zcash/zcash/blob/99ad6fdc3a549ab510422820eea5e5ce9f60a5fd/src/rpc/blockchain.cpp#L1085-L1089

Complex Code or Requirements

I haven't looked into how to support it yet

Testing

No response

Related Work

No response

conradoplg commented 6 days ago

This can be cheaply done if we have valuePools (it's just the sum of them) so I'm closing this and merging it into https://github.com/ZcashFoundation/zebra/issues/5449