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