mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 11:26:44 +01:00
@@ -2,13 +2,14 @@ package common
|
||||
|
||||
import (
|
||||
"math/big"
|
||||
|
||||
eth "github.com/ethereum/go-ethereum/common"
|
||||
)
|
||||
|
||||
// Bid is a struct that represents one bid in the PoH
|
||||
type Bid struct {
|
||||
SlotNum SlotNum // Slot in which the bid is done
|
||||
Coordinator // Coordinator bidder information
|
||||
BidValue *big.Int
|
||||
EthBlockNum uint64
|
||||
Won bool // boolean flag that tells that this is the final winning bid of this SlotNum
|
||||
SlotNum SlotNum `meddler:"slot_num"`
|
||||
ForgerAddr eth.Address `meddler:"forger_addr"` // Coordinator reference
|
||||
BidValue *big.Int `meddler:"bid_value,bigint"`
|
||||
EthBlockNum uint64 `meddler:"eth_block_num"`
|
||||
}
|
||||
|
||||
@@ -8,8 +8,7 @@ import (
|
||||
|
||||
// Block represents of an Ethereum block
|
||||
type Block struct {
|
||||
EthBlockNum uint64
|
||||
Timestamp time.Time
|
||||
Hash eth.Hash
|
||||
PrevHash eth.Hash
|
||||
EthBlockNum uint64 `meddler:"eth_block_num"`
|
||||
Timestamp time.Time `meddler:"timestamp"`
|
||||
Hash eth.Hash `meddler:"hash"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user