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:
24
common/batch.go
Normal file
24
common/batch.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
eth "github.com/ethereum/go-ethereum/common"
|
||||
)
|
||||
|
||||
// Batch is a struct that represents Hermez network batch
|
||||
type Batch struct {
|
||||
BatchNum BatchNum
|
||||
SlotNum SlotNum // Slot in which the batch is forged
|
||||
EthTxHash eth.Hash
|
||||
BlockNum uint64 // Etherum block in which the batch is forged
|
||||
Timestamp time.Time
|
||||
Forger eth.Address
|
||||
ExitRoot Hash
|
||||
OldRoot Hash
|
||||
NewRoot Hash
|
||||
TotalAccounts uint64
|
||||
}
|
||||
|
||||
// BatchNum identifies a batch
|
||||
type BatchNum uint32
|
||||
Reference in New Issue
Block a user