Skip to content

Commit

Permalink
chore: Address PR comments from Jude
Browse files Browse the repository at this point in the history
  • Loading branch information
jbencin committed Apr 29, 2024
1 parent fa95032 commit 6bd3a61
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions stackslib/src/chainstate/stacks/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -710,11 +710,11 @@ impl TransactionSpendingCondition {

Some(TransactionSpendingCondition::Singlesig(
SinglesigSpendingCondition {
signer: signer_addr.bytes.clone(),
signer: signer_addr.bytes,
nonce: 0,
tx_fee: 0,
hash_mode: SinglesigHashMode::P2PKH,
key_encoding: key_encoding,
key_encoding,
signature: MessageSignature::empty(),
},
))
Expand All @@ -730,7 +730,7 @@ impl TransactionSpendingCondition {

Some(TransactionSpendingCondition::Singlesig(
SinglesigSpendingCondition {
signer: signer_addr.bytes.clone(),
signer: signer_addr.bytes,
nonce: 0,
tx_fee: 0,
hash_mode: SinglesigHashMode::P2WPKH,
Expand All @@ -753,7 +753,7 @@ impl TransactionSpendingCondition {

Some(TransactionSpendingCondition::Multisig(
MultisigSpendingCondition {
signer: signer_addr.bytes.clone(),
signer: signer_addr.bytes,
nonce: 0,
tx_fee: 0,
hash_mode: MultisigHashMode::P2SH,
Expand All @@ -776,7 +776,7 @@ impl TransactionSpendingCondition {

Some(TransactionSpendingCondition::OrderIndependentMultisig(
OrderIndependentMultisigSpendingCondition {
signer: signer_addr.bytes.clone(),
signer: signer_addr.bytes,
nonce: 0,
tx_fee: 0,
hash_mode: OrderIndependentMultisigHashMode::P2SH,
Expand All @@ -799,7 +799,7 @@ impl TransactionSpendingCondition {

Some(TransactionSpendingCondition::OrderIndependentMultisig(
OrderIndependentMultisigSpendingCondition {
signer: signer_addr.bytes.clone(),
signer: signer_addr.bytes,
nonce: 0,
tx_fee: 0,
hash_mode: OrderIndependentMultisigHashMode::P2WSH,
Expand All @@ -822,7 +822,7 @@ impl TransactionSpendingCondition {

Some(TransactionSpendingCondition::Multisig(
MultisigSpendingCondition {
signer: signer_addr.bytes.clone(),
signer: signer_addr.bytes,
nonce: 0,
tx_fee: 0,
hash_mode: MultisigHashMode::P2WSH,
Expand Down
2 changes: 1 addition & 1 deletion stackslib/src/chainstate/stacks/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ impl StacksBlock {
}
}
if !tx.auth.is_supported_in_epoch(epoch_id) {
error!("Order independent multisig transactions not supported before Stacks 3.0");
error!("Authentication mode not supported in Epoch {epoch_id}");
return false;
}
}
Expand Down

0 comments on commit 6bd3a61

Please sign in to comment.