-
Notifications
You must be signed in to change notification settings - Fork 43
feat(drive-abci)!: remove unnecessary validation from check tx and re-check #1647
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
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.
Let's use v1.0-dev as base branch since it's a breaking change
...te_transition/state_transitions/identity/identity_create_transition/state_transition_like.rs
Outdated
Show resolved
Hide resolved
...ages/rs-drive-abci/src/execution/validation/state_transition/check_tx_verification/v0/mod.rs
Show resolved
Hide resolved
...ages/rs-drive-abci/src/execution/validation/state_transition/check_tx_verification/v0/mod.rs
Show resolved
Hide resolved
...ages/rs-drive-abci/src/execution/validation/state_transition/check_tx_verification/v0/mod.rs
Show resolved
Hide resolved
...ages/rs-drive-abci/src/execution/validation/state_transition/check_tx_verification/v0/mod.rs
Show resolved
Hide resolved
...ages/rs-drive-abci/src/execution/validation/state_transition/check_tx_verification/v0/mod.rs
Show resolved
Hide resolved
...ages/rs-drive-abci/src/execution/validation/state_transition/check_tx_verification/v0/mod.rs
Outdated
Show resolved
Hide resolved
use crate::execution::validation::state_transition::common::asset_lock::proof::verify_is_not_spent::AssetLockProofVerifyIsNotSpent; | ||
|
||
// TODO: Versioning | ||
impl AssetLockProofValidation for ChainAssetLockProof { |
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.
Implement versioning
use crate::execution::validation::state_transition::common::asset_lock::proof::verify_is_not_spent::AssetLockProofVerifyIsNotSpent; | ||
|
||
// TODO: Versioning | ||
impl AssetLockProofValidation for InstantAssetLockProof { |
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.
Implement versioning
impl AssetLockProofStateValidation for InstantAssetLockProof { | ||
fn validate_state<C: CoreRPCLike>( | ||
impl AssetLockProofVerifyIsNotSpent for InstantAssetLockProof { | ||
fn verify_is_not_spent<C>( |
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.
Versioning
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.
Cool 👍
Issue being fixed or feature implemented
Check tx used to have a pretty expensive validation. It wasn't always needed, especially on rechecks.
What was done?
While still verify some parts of state (for example the identity balance, or the fact that the asset lock hasn't been used), we no longer verify all parts of the state.
How Has This Been Tested?
Untested for now.
Breaking Changes
Because Check-tx is changing this can be considered a breaking change. It most likely would not break testnet however.
Checklist:
For repository code-owners and collaborators only