mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 19:36:44 +01:00
Update to follow DB spec
This commit is contained in:
16
common/syncstate.go
Normal file
16
common/syncstate.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// SyncronizerState describes the syncronization progress of the smart contracts
|
||||
type SyncronizerState struct {
|
||||
LastUpdate time.Time // last time this information was updated
|
||||
CurrentBatchNum BatchNum // Last batch that was forged on the blockchain
|
||||
CurrentBlockNum uint64 // Last block that was mined on Ethereum
|
||||
CurrentToForgeL1TxsNum uint32
|
||||
LastSyncedBatchNum BatchNum // last batch synchronized by the coordinator
|
||||
LastSyncedBlockNum uint64 // last Ethereum block synchronized by the coordinator
|
||||
LastSyncedToForgeL1TxsNum uint32
|
||||
}
|
||||
Reference in New Issue
Block a user