Documentation ¶
Overview ¶
It is called by go generate and used to automatically generate pre-computed Copyright 2017-2022 The qitmeer developers This file is auto generate by : go run mkalloc.go
Index ¶
- Constants
- Variables
- func BuildGenesisHash(network string) string
- func ChainConfig() *params.ChainConfig
- func Cleanup(cfg *config.Config)
- func DecodePrealloc(data string) core.GenesisAlloc
- func DeleteBlockNumber(db ethdb.KeyValueWriter, hash common.Hash)
- func Genesis() *core.Genesis
- func MakeConfig(datadir string) (*eth.Config, error)
- func MakeParams(cfg *config.Config) (*eth.Config, []string, error)
- func MakePreState(db ethdb.Database, accounts core.GenesisAlloc) *state.StateDB
- func NewTransactorWithChainID(addr common.Address, chainID *big.Int) (*bind.TransactOpts, error)
- func QngGenesis() *core.Genesis
- func QngMixnetGenesis() *core.Genesis
- func QngPrivnetGenesis() *core.Genesis
- func QngTestnetGenesis() *core.Genesis
- func ReadBlockNumber(db ethdb.KeyValueReader, hash common.Hash) *uint64
- func UpdateAlloc(genesis *core.Genesis, contracts []Contract) error
- func UseLogger(logger l.Logger)
- func WriteBlockNumber(db ethdb.KeyValueWriter, hash common.Hash, number uint64)
- type Alloc
- type Backend
- type Contract
- type GenTransaction
- type GenesisData
- type MeerChain
- func (b *MeerChain) CheckConnectBlock(block qconsensus.Block) error
- func (b *MeerChain) ConnectBlock(block qconsensus.Block) (uint64, error)
- func (b *MeerChain) ETHChain() *eth.ETHChain
- func (b *MeerChain) MeerPool() *MeerPool
- func (b *MeerChain) PrepareEnvironment(state model.BlockState) (*types.Header, error)
- func (b *MeerChain) RegisterAPIs(apis []api.API)
- func (b *MeerChain) RewindTo(state model.BlockState) error
- func (b *MeerChain) Start()
- func (b *MeerChain) Stop()
- type MeerPool
- func (m *MeerPool) AddTx(tx *qtypes.Transaction, local bool) (int64, error)
- func (m *MeerPool) AnnounceNewTransactions(txs []*types.Transaction) error
- func (m *MeerPool) BuildPayload(args *miner.BuildPayloadArgs) (*miner.Payload, error)
- func (m *MeerPool) Close()
- func (m *MeerPool) DisablePreseal()
- func (m *MeerPool) EnablePreseal()
- func (m *MeerPool) GetSealingBlockAsync(parent common.Hash, timestamp uint64, coinbase common.Address, ...) (chan *types.Block, error)
- func (m *MeerPool) GetSealingBlockSync(parent common.Hash, timestamp uint64, coinbase common.Address, ...) (*types.Block, error)
- func (m *MeerPool) GetSize() int64
- func (m *MeerPool) GetTxs() ([]*qtypes.Transaction, []*hash.Hash, error)
- func (m *MeerPool) HasTx(h *hash.Hash) bool
- func (m *MeerPool) Hashrate() uint64
- func (m *MeerPool) Mining() bool
- func (m *MeerPool) Pending() (*types.Block, *state.StateDB)
- func (m *MeerPool) PendingBlock() *types.Block
- func (m *MeerPool) PendingBlockAndReceipts() (*types.Block, types.Receipts)
- func (m *MeerPool) RemoveTx(tx *qtypes.Transaction) error
- func (m *MeerPool) ResetTemplate() error
- func (m *MeerPool) SetEtherbase(addr common.Address)
- func (m *MeerPool) SetExtra(extra []byte) error
- func (m *MeerPool) SetGasCeil(ceil uint64)
- func (m *MeerPool) SetRecommitInterval(interval time.Duration)
- func (m *MeerPool) Start()
- func (m *MeerPool) Stop()
- func (m *MeerPool) SubscribePendingLogs(ch chan<- []*types.Log) event.Subscription
- type NetGenesisData
Constants ¶
View Source
const MainAllocHash = "204bb2f79e29453543b74b620533c854ddd327603fdcadb5c938b4e29e2cbd0b"
View Source
const MixAllocHash = "e380c81b956194ce4e38c218f9b99300ef725f58b7ec13963fea763c8379446f"
View Source
const PrivAllocHash = "e380c81b956194ce4e38c218f9b99300ef725f58b7ec13963fea763c8379446f"
View Source
const QngJs = `` /* 6599-byte string literal not displayed */
View Source
const TestAllocHash = "e380c81b956194ce4e38c218f9b99300ef725f58b7ec13963fea763c8379446f"
Variables ¶
View Source
var (
// ClientIdentifier is a hard coded identifier to report into the network.
ClientIdentifier = "meereth"
)
View Source
var (
SysContractDeployerAddress = common.Address{}
)
View Source
var (
// Version is the version of MeerEvm
Version = "meervm-v0.0.2"
)
Functions ¶
func BuildGenesisHash ¶
func ChainConfig ¶ added in v1.0.20
func ChainConfig() *params.ChainConfig
func DecodePrealloc ¶
func DecodePrealloc(data string) core.GenesisAlloc
func DeleteBlockNumber ¶
func DeleteBlockNumber(db ethdb.KeyValueWriter, hash common.Hash)
func MakePreState ¶
func QngGenesis ¶ added in v1.0.21
func QngMixnetGenesis ¶ added in v1.0.21
func QngPrivnetGenesis ¶ added in v1.0.21
func QngTestnetGenesis ¶ added in v1.0.21
func ReadBlockNumber ¶
func ReadBlockNumber(db ethdb.KeyValueReader, hash common.Hash) *uint64
func WriteBlockNumber ¶
func WriteBlockNumber(db ethdb.KeyValueWriter, hash common.Hash, number uint64)
Types ¶
type Alloc ¶
type Alloc map[common.Address]core.GenesisAccount
type GenTransaction ¶
type GenTransaction struct { *types.Transaction From common.Address }
type GenesisData ¶
type MeerChain ¶
type MeerChain struct {
// contains filtered or unexported fields
}
func NewMeerChain ¶
func NewMeerChain(ctx qconsensus.Context) (*MeerChain, error)
func (*MeerChain) CheckConnectBlock ¶
func (b *MeerChain) CheckConnectBlock(block qconsensus.Block) error
func (*MeerChain) ConnectBlock ¶
func (b *MeerChain) ConnectBlock(block qconsensus.Block) (uint64, error)
func (*MeerChain) PrepareEnvironment ¶ added in v1.0.21
func (*MeerChain) RegisterAPIs ¶
type MeerPool ¶
type MeerPool struct {
// contains filtered or unexported fields
}
func (*MeerPool) AnnounceNewTransactions ¶
func (m *MeerPool) AnnounceNewTransactions(txs []*types.Transaction) error
func (*MeerPool) BuildPayload ¶ added in v1.0.20
func (*MeerPool) DisablePreseal ¶
func (m *MeerPool) DisablePreseal()
func (*MeerPool) EnablePreseal ¶
func (m *MeerPool) EnablePreseal()
func (*MeerPool) GetSealingBlockAsync ¶
func (*MeerPool) GetSealingBlockSync ¶
func (*MeerPool) PendingBlock ¶
func (*MeerPool) PendingBlockAndReceipts ¶
func (*MeerPool) ResetTemplate ¶
func (*MeerPool) SetEtherbase ¶
func (*MeerPool) SetGasCeil ¶
func (*MeerPool) SetRecommitInterval ¶
func (*MeerPool) SubscribePendingLogs ¶
func (m *MeerPool) SubscribePendingLogs(ch chan<- []*types.Log) event.Subscription
type NetGenesisData ¶
type NetGenesisData struct { Network string `json:"network"` Data GenesisData `json:"data"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.