You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
492 B

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