Ensure frozen ATs are still executed every block.

We currently want to execute frozen ATs, to maintain backwards support. We could optionally choose to stop executing them later, via a hard fork.
This commit is contained in:
CalDescent 2021-08-06 20:01:59 +01:00
parent ec008b4a16
commit a253294890

View File

@ -131,8 +131,10 @@ public class AT {
// Nothing happened?
if (state.getSteps() == 0 && Arrays.equals(stateHash, latestAtStateData.getStateHash()))
// this.atStateData will be null
return Collections.emptyList();
// We currently want to execute frozen ATs, to maintain backwards support.
if (state.isFrozen() == false)
// this.atStateData will be null
return Collections.emptyList();
long atFees = api.calcFinalFees(state);
Long sleepUntilMessageTimestamp = this.atData.getSleepUntilMessageTimestamp();