mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 11:26:44 +01:00
Initial dract of the common structs
This commit is contained in:
12
common/slot.go
Normal file
12
common/slot.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package common
|
||||
|
||||
// Slot represents a slot of the Hermez network
|
||||
// WARNING: this is strongly based on the previous implementation, once the new spec is done, this may change a lot.
|
||||
type Slot struct {
|
||||
SlotNum SlotNum
|
||||
StartingBlock uint64 // Etherum block in which the slot starts
|
||||
Forger Operator // Current Operaror winner information
|
||||
}
|
||||
|
||||
// SlotNum identifies a slot
|
||||
type SlotNum uint32
|
||||
Reference in New Issue
Block a user