File tree Expand file tree Collapse file tree 2 files changed +6
-14
lines changed
stackslib/src/chainstate/stacks/db Expand file tree Collapse file tree 2 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,12 @@ impl ParseError {
114
114
}
115
115
116
116
pub fn rejectable ( & self ) -> bool {
117
- matches ! ( * self . err, ParseErrors :: InterpreterFailure )
117
+ matches ! (
118
+ * self . err,
119
+ ParseErrors :: InterpreterFailure
120
+ | ParseErrors :: ExpressionStackDepthTooDeep
121
+ | ParseErrors :: VaryExpressionStackDepthTooDeep
122
+ )
118
123
}
119
124
120
125
pub fn has_pre_expression ( & self ) -> bool {
Original file line number Diff line number Diff line change @@ -1288,19 +1288,6 @@ impl StacksChainState {
1288
1288
) ) ;
1289
1289
}
1290
1290
other_error => {
1291
- // a [Vary]ExpressionDepthTooDeep error in this situation
1292
- // invalidates the block, since this should have prevented the
1293
- // block from getting relayed in the first place
1294
- if let clarity_error:: Parse ( ref parse_error) = & other_error {
1295
- match * parse_error. err {
1296
- ParseErrors :: ExpressionStackDepthTooDeep
1297
- | ParseErrors :: VaryExpressionStackDepthTooDeep => {
1298
- info ! ( "Transaction {} is problematic and should have prevented this block from being relayed" , tx. txid( ) ) ;
1299
- return Err ( Error :: ClarityError ( other_error) ) ;
1300
- }
1301
- _ => { }
1302
- }
1303
- }
1304
1291
if let clarity_error:: Parse ( err) = & other_error {
1305
1292
if err. rejectable ( ) {
1306
1293
info ! ( "Transaction {} is problematic and should have prevented this block from being relayed" , tx. txid( ) ) ;
You can’t perform that action at this time.
0 commit comments