-
Notifications
You must be signed in to change notification settings - Fork 219
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
feat!: add committee management utxo #3835
feat!: add committee management utxo #3835
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.
Very nice! Think 100 FPG is a quite high for the checkpoint
applications/tari_collectibles/src-tauri/src/clients/wallet_client.rs
Outdated
Show resolved
Hide resolved
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.
Happy, just would prefer a better name to committee_checkpoint
. Checkpoint is used for the sidechain to checkpoint it's data to the base layer. Having two terms for checkpoint will probably be confusing.
I suggested committee_management
but it's not great either. Open to other suggestions
@@ -17,7 +17,7 @@ pub enum OutputFeaturesVersion { | |||
|
|||
impl OutputFeaturesVersion { | |||
pub fn get_current_version() -> Self { | |||
Self::V1 | |||
Self::V0 |
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.
keep V0 for now until we opt in
#[repr(u8)] | ||
pub enum TransactionInputVersion { | ||
V0 = 0, | ||
V1 = 1, |
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.
This was added for testing and is unused for now
@@ -196,7 +196,8 @@ impl UnblindedOutput { | |||
)); | |||
} | |||
let commitment = factories.commitment.commit(&self.spending_key, &self.value.into()); | |||
let output = TransactionOutput::new_current_version( | |||
let output = TransactionOutput::new( | |||
self.version.clone(), |
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.
I think this was a bug, as calling these functions would overwrite the given utxo version with whatever get_current_version
would return
@@ -242,7 +243,8 @@ impl UnblindedOutput { | |||
.map_err(|_| TransactionError::RangeProofError(RangeProofError::ProofConstructionError))? | |||
}; | |||
|
|||
let output = TransactionOutput::new_current_version( | |||
let output = TransactionOutput::new( | |||
self.version.clone(), |
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.
I think this was a bug, as calling these functions would overwrite the given utxo version with whatever get_current_version
would return
Just need to update some tests after the change back to V0 |
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.
Not tested but looking good
Description
bumps the output features version to V1 (this is a hard fork as older software won’t accept the new version)edit: keep V0 as current output features version and add mempool validation and consensus rules for versionstoo many args
to 12 and remove individualallow
supdate: 16 feb
specific changes: d34af75
current_version
instead of the given utxo version