arnaucube
arnaucube/hermez-nodePublic Self-hosted repository
hermez-node/common/coordinator.go
common/coordinator.goRaw
 1package common
 2
 3import (
 4	ethCommon "github.com/ethereum/go-ethereum/common"
 5)
 6
 7// Coordinator represents a Hermez network coordinator who wins an auction for an specific slot
 8// WARNING: this is strongly based on the previous implementation, once the new spec is done, this may change a lot.
 9type Coordinator struct {
10	Bidder      ethCommon.Address `meddler:"bidder_addr"`   // address of the bidder
11	Forger      ethCommon.Address `meddler:"forger_addr"`   // address of the forger
12	EthBlockNum int64             `meddler:"eth_block_num"` // block in which the coordinator was registered
13	URL         string            `meddler:"url"`           // URL of the coordinators API
14}