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