You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
634 B

  1. package common
  2. import (
  3. "time"
  4. )
  5. // SyncronizerState describes the synchronization progress of the smart contracts
  6. type SyncronizerState struct {
  7. LastUpdate time.Time // last time this information was updated
  8. CurrentBatchNum BatchNum // Last batch that was forged on the blockchain
  9. CurrentBlockNum uint64 // Last block that was mined on Ethereum
  10. CurrentToForgeL1TxsNum uint32
  11. LastSyncedBatchNum BatchNum // last batch synchronized by the coordinator
  12. LastSyncedBlockNum uint64 // last Ethereum block synchronized by the coordinator
  13. LastSyncedToForgeL1TxsNum uint32
  14. }