Skip to content
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

Multisig order independence #6

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: Address PR comments from Jude
jbencin committed Apr 29, 2024
commit be71ee8ed9f9a331f6c707de48624b204a9dc28d
6 changes: 3 additions & 3 deletions stackslib/src/chainstate/stacks/db/blocks.rs
Original file line number Diff line number Diff line change
@@ -6650,7 +6650,9 @@ impl StacksChainState {
// 1: must parse (done)

// 2: it must be validly signed.
StacksChainState::process_transaction_precheck(&chainstate_config, &tx)
let epoch = clarity_connection.get_epoch().clone();

StacksChainState::process_transaction_precheck(&chainstate_config, &tx, epoch)
.map_err(|e| MemPoolRejection::FailedToValidate(e))?;

// 3: it must pay a tx fee
@@ -6664,8 +6666,6 @@ impl StacksChainState {
}

// 4: check if transaction is valid in the current epoch
let epoch = clarity_connection.get_epoch().clone();

if !StacksBlock::validate_transactions_static_epoch(&[tx.clone()], epoch) {
return Err(MemPoolRejection::Other(
"Transaction is not supported in this epoch".to_string(),
Loading