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.

15 lines
343 B

  1. package common
  2. import (
  3. "time"
  4. ethCommon "github.com/ethereum/go-ethereum/common"
  5. )
  6. // Block represents of an Ethereum block
  7. type Block struct {
  8. EthBlockNum int64 `meddler:"eth_block_num"`
  9. Timestamp time.Time `meddler:"timestamp"`
  10. Hash ethCommon.Hash `meddler:"hash"`
  11. ParentHash ethCommon.Hash `meddler:"-"`
  12. }