-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getblock: return the valuesPools
and chainSupply
fields
#5449
Comments
I had been doing some research about this and i think the complexity depends on the fields needed. The Getting the value pools from each transaction is not hard for zebra, i wrote a proof of concept here: https://github.com/ZcashFoundation/zebra/compare/issue5449?expand=1 It also displays the transacions as json (something we don't have in verbosity = 0 or verbosity = 1). PoC is currently untested. This works depends on the fileds we want to display in verbose = 2. id The proof of concept only supports |
The The |
Yea, i was imagining that will be the case but just have the fields upside down. This is a bit harder to do but i think we can do it, if we really want it. Before doing that we should ask what other fields will be needed so we can estimate their complexity. And we should also decide if we want to do it, and if so, if we want to do it now. |
We definitely don't want to do this until we've finished #5234 |
Is this still something that is necessary or would be worth doing or should we just close it? |
I think it might be very useful to test the ZSA work, but it is a reasonably sized change: database upgrade, new state request, new RPC field. |
valuesPools
and chainSupply
fields
Motivation
We've had a request to add the
valuePools
field to thegetblock
RPC response, to support a Zcash dashboard:https://discord.com/channels/676527656170160146/913808952997863434/1032724714805800990
This field is supplied by
zcashd
whenverbosity >= 1
.Specifications
https://github.com/zcash/zcash/blob/99ad6fdc3a549ab510422820eea5e5ce9f60a5fd/src/rpc/blockchain.cpp#L773-L781
Designs
Store the value pool amounts for every height, not just the tip value pool amount. This requires a database change and version increment. (Possible alternative: build a memory index from scratch when starting, if that's fast enough. It will require special code to not fully parse transactions, for speed)
Add
verbosity >=1 2
parameter withvaluePools
field togetblock
.The text was updated successfully, but these errors were encountered: