status-im / status-console-client

Status messaging console user interface
Mozilla Public License 2.0
10 stars 2 forks source link

MVDS Epoch persistence #120

Open decanus opened 5 years ago

decanus commented 5 years ago

When the application is stopped, the current MVDS epoch and current unix time should be saved. Upon restarting the application the epoch and unix time should be read, then the difference of the time closed and current time should be investigated, added to the epoch and used as the epoch when creating the MVDS node.

epoch = last_epoch + (current_time - last_time)