arnaucube
arnaucube/hermez-nodePublic Self-hosted repository
hermez-node/common/batch.go
common/batch.goRaw
 1package common
 2
 3import (
 4	"time"
 5
 6	eth "github.com/ethereum/go-ethereum/common"
 7)
 8
 9// Batch is a struct that represents Hermez network batch
10type Batch struct {
11	BatchNum      BatchNum
12	SlotNum       SlotNum // Slot in which the batch is forged
13	EthTxHash     eth.Hash
14	BlockNum      uint64 // Etherum block in which the batch is forged
15	Timestamp     time.Time
16	Forger        eth.Address
17	ExitRoot      Hash
18	OldRoot       Hash
19	NewRoot       Hash
20	TotalAccounts uint64
21}
22
23// BatchNum identifies a batch
24type BatchNum uint32