-
Notifications
You must be signed in to change notification settings - Fork 725
[Validation] v8 blocks, Sapling merkle tree inclusion. #1910
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
Conversation
238a391 to
9faa809
Compare
9faa809 to
06f7f1d
Compare
Fuzzbawls
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some consistency comments left about using our optional.h wrapper around boost::optional, but otherwise looking good
06f7f1d to
d0b477e
Compare
random-zebra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's an issue with the new RPC fields implementation (UniValue object elements must be a pair key-object, not plain objects).
Aside from this, we should consider if we really want to store in memory nChainSaplingValue for all blocks. That would add more than 20 MB to the runtime memory consumption at the current chain size (on mainnet).
Not so much... but still, we only need its value at the chain tip.
Probably fine to leave it as is in this PR, but something we might want to consider later.
d0b477e to
883e679
Compare
|
Updated per feedback. |
883e679 to
844baef
Compare
random-zebra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor nit for the help output.
Otherwise ACK.
Back port coming from zcash@ae97177c86a902d8f9b2976d9b578b5d236f1ce5
…cessBlocks, DisconnectBlocks, DisconnectTip
Do not try to update tree anchor and witnesses if sapling is not active Validation: Adapted the cached incremental witnesses update flow to the syncTransaction changes. The witness update must be after the SyncTransaction signal.
Reject blocks with negative shielded pool value.
844baef to
1403918
Compare
|
Done, updated per feedback. |
random-zebra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 1403918
Fuzzbawls
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 1403918
Another decoupling from #1798, built on top of #1903 and #1915.
Containing three topics:
Sapling merkle tree root hash inclusion in the block header.
Track network total value entering and exiting the shielded pool. (*)
ChainTip signal implemented.
This PR is including the following commits decoupled from #1798.