genesis

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2019 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileName       = "genesis.json"
	InitBlockScore = 1
)
View Source
const BaobabAddressBookBin = "" /* 47244-byte string literal not displayed */
View Source
const CypressAddressBookBin = "" /* 47244-byte string literal not displayed */
View Source
const CypressCreditBin = "" /* 1459112-byte string literal not displayed */
View Source
const PreCypressAddressBookBin = "" /* 47244-byte string literal not displayed */
View Source
const PrebaobabAddressBookBin = "" /* 47244-byte string literal not displayed */

Variables

This section is empty.

Functions

func New

func New(options ...Option) *blockchain.Genesis

func NewClique

func NewClique(options ...Option) *blockchain.Genesis

func NewFile

func NewFile(options ...Option) string

func NewFileAt

func NewFileAt(dir string, options ...Option) string

func Save

func Save(dataDir string, genesis *blockchain.Genesis) error

Types

type Option

type Option func(*blockchain.Genesis)

func Alloc

func Alloc(addrs []common.Address, balance *big.Int) Option

func AllocWithBaobabContract

func AllocWithBaobabContract(addrs []common.Address, balance *big.Int) Option

func AllocWithCypressContract

func AllocWithCypressContract(addrs []common.Address, balance *big.Int) Option

func AllocWithPrebaobabContract

func AllocWithPrebaobabContract(addrs []common.Address, balance *big.Int) Option

func AllocWithPrecypressContract

func AllocWithPrecypressContract(addrs []common.Address, balance *big.Int) Option

func ChainID

func ChainID(chainID *big.Int) Option

func Clique

func Clique(config *params.CliqueConfig) Option

func DeriveShaImpl

func DeriveShaImpl(impl int) Option

func Governance

func Governance(config *params.GovernanceConfig) Option

func Istanbul

func Istanbul(config *params.IstanbulConfig) Option

func ProposerInterval

func ProposerInterval(interval uint64) Option

func StakingInterval

func StakingInterval(interval uint64) Option

func UnitPrice

func UnitPrice(price uint64) Option

func Validators

func Validators(addrs ...common.Address) Option

func ValidatorsOfClique

func ValidatorsOfClique(signers ...common.Address) Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL