Avoid ID validation on transition with already validated flag
@@ -555,11 +555,11 @@ func (t *transition) validateTXIDs(list module.TransactionList, logger TXIDLogge
}
func (t *transition) doExecute(alreadyValidated bool) {
+ if !alreadyValidated {
if err := t.ensureRecordTXIDs(false); err != nil {
t.reportValidation(err)
return
}
- if !alreadyValidated {
wc, err := t.newWorldContext(false)
if err != nil {
t.reportValidation(err)
@@ -583,6 +583,11 @@ func (t *transition) doExecute(alreadyValidated bool) {
t.reportValidation(err)
return
}
+ } else {
+ if err := t.ensureRecordTXIDs(true); err != nil {
+ t.reportValidation(err)
+ return
+ }
}
if !t.reportValidation(nil) {
