-
Notifications
You must be signed in to change notification settings - Fork 106
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
Update Non-Finalized State for Transaction v5 #1982
Comments
This is not clear to me.
|
There are two I'm not sure why we do transaction updates inside block updates. Transaction updates might be easier to understand as a separate implementation. We'd have two shorter functions, rather than one long one. |
There is a network_upgrade_override here. It is currently disabled using None. You should replace it with NU5 after making these changes: |
Blocked by #2050, which implements v5 transaction IDs |
Thinking about this dependency again. We're not committing any v5 transaction IDs to state yet, so we can do these PRs in any order. (If we do accidentally commit v5 IDs to state because we're missing verification, we just need to update the state version and rebuild. But that shouldn't happen, because the transaction validation code is marked unimplemented!) |
I see all checkbox items above are ticked, what else is outstanding here? |
It's all done, we should have said |
Is your feature request related to a problem? Please describe.
Transaction v5 introduces Orchard nullifiers, which we need to include in the non-finalized state. We also need to handle sapling nullifiers, transparent UTXOs, and transaction IDs for transaction v5.
Describe the solution you'd like
orchard_nullifiers
field tonon_finalized_state::Chain
UpdateWith
forOption<orchard::ShieldedData>
UpdateWith
forTransaction::V5
impl Strategy for PreparedChain
It's hard to test this code using test vectors, because they need to be in a chain with valid previous block hashes.
Describe alternatives you've considered
These changes are required for NU5.
Additional context
Nullifier sets are validated in #958.
The text was updated successfully, but these errors were encountered: