Fantom-foundation / Norma

Integration project of Carmen and Tosca
GNU Lesser General Public License v3.0
2 stars 9 forks source link

Genesis Import/Export SimEvent ordering #215

Closed rpl-ffl closed 4 weeks ago

rpl-ffl commented 4 months ago

Currently, genesis import/export event is created arbitrarily even though ordering of events matter. For example,

Thus, the current code does not work: https://github.com/Fantom-foundation/Norma/blob/f4f77e74f7479f0111424a4aedc795f38b235560/driver/executor/executor.go#L217-L236 And must be modified so that appropriate order of events is followed.

Out of the box, the executor executes whatever SimEvent is created first. This may be sufficient short-term. However, successor events is already built into the executor and this might be a cleaner approach to ordering the genesis events.

https://github.com/Fantom-foundation/Norma/blob/f4f77e74f7479f0111424a4aedc795f38b235560/driver/executor/executor.go#L86