Documentation
¶
Index ¶
Constants ¶
View Source
const ( FileName = "genesis.json" InitGasLimit = 3758096384 InitDifficulty = 1 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
func Validators ¶
type QuorumChainConfig ¶
type QuorumChainConfig struct { *params.ChainConfig IsQuorum bool `json:"isQuorum,omitempty"` }
type QuorumGenesis ¶
type QuorumGenesis struct { Config *QuorumChainConfig `json:"config"` Nonce uint64 `json:"nonce"` Timestamp uint64 `json:"timestamp"` ExtraData []byte `json:"extraData"` GasLimit uint64 `json:"gasLimit" gencodec:"required"` Difficulty *big.Int `json:"difficulty" gencodec:"required"` Mixhash common.Hash `json:"mixHash"` Coinbase common.Address `json:"coinbase"` Alloc core.GenesisAlloc `json:"alloc" gencodec:"required"` // These fields are used for consensus tests. Please don't use them // in actual genesis blocks. Number uint64 `json:"number"` GasUsed uint64 `json:"gasUsed"` ParentHash common.Hash `json:"parentHash"` }
func ToQuorum ¶
func ToQuorum(g *core.Genesis, isQuorum bool) *QuorumGenesis
ToQuorum converts standard genesis to quorum genesis
func (QuorumGenesis) MarshalJSON ¶
func (q QuorumGenesis) MarshalJSON() ([]byte, error)
func (*QuorumGenesis) UnmarshalJSON ¶
func (q *QuorumGenesis) UnmarshalJSON(input []byte) error
Click to show internal directories.
Click to hide internal directories.