iotaledger/TangleSim

Introduce artificial time

daria305 opened this issue · 1 comments

Right now simulation is based on time measured in time.Duration and time.Ticker is used. Thus changing the pace on machines with different computional power might result in diffrent simulation results.
Introduce the artificial time h to decouple confirmation time measurement from actual time and any slowdowns of the system unrelated to the simulation.

  • Replace time.Ticker with some counter that is independent from wall time.
  • Replace all time related parameters and time units with the new artificial time unit.

We will use deceleration factor to slow down the whole simulation, as that should not impact the results.