Skip to content

Commit 9dce991

Browse files
committed
fix: add ClarityError::CostError to special case handling
1 parent 28cb005 commit 9dce991

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stackslib/src/net/api/postblock_proposal.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ use crate::chainstate::stacks::miner::{
5656
use crate::chainstate::stacks::{
5757
Error as ChainError, StacksBlock, StacksBlockHeader, StacksTransaction, TransactionPayload,
5858
};
59+
use crate::clarity_vm::clarity::Error as ClarityError;
5960
use crate::core::mempool::{MemPoolDB, ProposalCallbackReceiver};
6061
use crate::cost_estimates::FeeRateEstimate;
6162
use crate::net::http::{
@@ -605,7 +606,8 @@ impl NakamotoBlockProposal {
605606

606607
match error {
607608
ChainError::CostOverflowError(..)
608-
| ChainError::BlockTooBigError => {
609+
| ChainError::BlockTooBigError
610+
| ChainError::ClarityError(ClarityError::CostError(..)) => {
609611
// block limit reached; add tx back to replay set.
610612
// BUT we know that the block should have ended at this point, so
611613
// return an error.

0 commit comments

Comments
 (0)