Charge default step on blocked transaction
@@ -127,16 +127,15 @@ func (th *transactionHandler) DoExecute(cc contract.CallContext, estimate, isPat
return err, nil, nil
}
}
+ if !cc.ApplySteps(state.StepTypeDefault, 1) {
+ return scoreresult.ErrOutOfStep, nil, nil
+ }
if !isPatch {
if err := th.checkBlocked(cc); err != nil {
return err, nil, nil
}
}
- if !cc.ApplySteps(state.StepTypeDefault, 1) {
- return scoreresult.ErrOutOfStep, nil, nil
- }
-
if cnt, err := MeasureBytesOfData(cc.Revision(), th.data); err != nil {
return nil, nil, err
} else {
