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 6bd3a61 commit be71ee8
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 94 deletions.
6 changes: 3 additions & 3 deletions stackslib/src/chainstate/stacks/db/blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(),
Expand Down
Loading

0 comments on commit be71ee8

Please sign in to comment.