Add initial structure Coordinator Forge Sequence

This commit is contained in:
arnaucube
2020-08-13 18:55:33 +02:00
parent a1c339c918
commit 8390e4a784
8 changed files with 288 additions and 8 deletions

13
node/node.go Normal file
View File

@@ -0,0 +1,13 @@
package node
type mode string
// ModeCoordinator defines the mode of the HermezNode as Coordinator, which
// means that the node is set to forge (which also will be synchronizing with
// the L1 blockchain state)
const ModeCoordinator mode = "coordinator"
// ModeSynchronizer defines the mode of the HermezNode as Synchronizer, which
// means that the node is set to only synchronize with the L1 blockchain state
// and will not forge
const ModeSynchronizer mode = "synchronizer"