Versions in this module Expand all Collapse all v1 v1.1.0 Jun 19, 2022 v1.0.0 Jun 19, 2022 Changes in this version + var BlackholeAddr = common.Address + type Block = types.Block + type ETHChain struct + func NewDefaultChain(t *testing.T) (*ETHChain, chan core.NewTxPoolHeadEvent, <-chan core.NewTxsEvent) + func NewETHChain(config *eth.Config, nodecfg *node.Config, chainDB ethdb.Database, ...) (*ETHChain, error) + func (self *ETHChain) APIBackend() *eth.EthAPIBackend + func (self *ETHChain) Accept(block *types.Block) error + func (self *ETHChain) AddLocalTxs(txs []*types.Transaction) []error + func (self *ETHChain) AddRemoteTxs(txs []*types.Transaction) []error + func (self *ETHChain) AddRemoteTxsSync(txs []*types.Transaction) []error + func (self *ETHChain) AttachEthService(handler *rpc.Server, names []string) error + func (self *ETHChain) BlockChain() *core.BlockChain + func (self *ETHChain) BlockState(block *types.Block) (*state.StateDB, error) + func (self *ETHChain) CurrentBlock() *types.Block + func (self *ETHChain) CurrentState() (*state.StateDB, error) + func (self *ETHChain) GenerateBlock() (*types.Block, error) + func (self *ETHChain) GetBlockByHash(hash common.Hash) *types.Block + func (self *ETHChain) GetBlockByNumber(num uint64) *types.Block + func (self *ETHChain) GetGenesisBlock() *types.Block + func (self *ETHChain) GetReceiptsByHash(hash common.Hash) types.Receipts + func (self *ETHChain) GetTxAcceptedSubmitCh() <-chan core.NewTxsEvent + func (self *ETHChain) GetTxPool() *core.TxPool + func (self *ETHChain) GetTxSubmitCh() <-chan core.NewTxsEvent + func (self *ETHChain) InsertBlock(block *types.Block) error + func (self *ETHChain) LastAcceptedBlock() *types.Block + func (self *ETHChain) NewRPCHandler(maximumDuration time.Duration) *rpc.Server + func (self *ETHChain) PendingSize() int + func (self *ETHChain) Reject(block *types.Block) error + func (self *ETHChain) RemoveRejectedBlocks(start, end uint64) error + func (self *ETHChain) SetPreference(block *types.Block) error + func (self *ETHChain) Start() + func (self *ETHChain) Stop() + func (self *ETHChain) ValidateCanonicalChain() error + type Hash = common.Hash + type Tx = types.Transaction