Versions in this module Expand all Collapse all v0 v0.2.2 Jun 7, 2020 Changes in this version + type Block = types.Block + type ETHChain struct + func NewETHChain(config *eth.Config, nodecfg *node.Config, etherBase *common.Address, ...) *ETHChain + func (self *ETHChain) AddLocalTxs(txs []*types.Transaction) []error + func (self *ETHChain) AddRemoteTxs(txs []*types.Transaction) []error + func (self *ETHChain) AttachEthService(handler *rpc.Server, namespaces []string) + func (self *ETHChain) BlockState(block *types.Block) (*state.StateDB, error) + func (self *ETHChain) CurrentState() (*state.StateDB, error) + func (self *ETHChain) GenBlock() + func (self *ETHChain) GetBlockByHash(hash common.Hash) *types.Block + func (self *ETHChain) GetGenesisBlock() *types.Block + func (self *ETHChain) GetReceiptsByHash(hash common.Hash) types.Receipts + func (self *ETHChain) GetTxPool() *core.TxPool + func (self *ETHChain) GetTxSubmitCh() <-chan struct{} + func (self *ETHChain) InsertChain(chain []*types.Block) (int, error) + func (self *ETHChain) NewRPCHandler() *rpc.Server + func (self *ETHChain) PendingSize() (int, error) + func (self *ETHChain) SetOnAPIs(cb dummy.OnAPIsCallbackType) + func (self *ETHChain) SetOnFinalize(cb dummy.OnFinalizeCallbackType) + func (self *ETHChain) SetOnFinalizeAndAssemble(cb dummy.OnFinalizeAndAssembleCallbackType) + func (self *ETHChain) SetOnHeaderNew(cb func(*types.Header)) + func (self *ETHChain) SetOnQueryAcceptedBlock(cb func() *types.Block) + func (self *ETHChain) SetOnSeal(cb func(*types.Block) error) + func (self *ETHChain) SetOnSealDrop(cb func(*types.Block)) + func (self *ETHChain) SetOnSealFinish(cb func(*types.Block) error) + func (self *ETHChain) SetOnSealHash(cb func(*types.Header)) + func (self *ETHChain) SetTail(hash common.Hash) error + func (self *ETHChain) Start() + func (self *ETHChain) Stop() + type Hash = common.Hash + type Key struct + Address common.Address + PrivateKey *ecdsa.PrivateKey + func NewKey(rand io.Reader) (*Key, error) + func NewKeyFromECDSA(privateKeyECDSA *ecdsa.PrivateKey) *Key + type Tx = types.Transaction