Versions in this module Expand all Collapse all v0 v0.1.0 Mar 12, 2018 Changes in this version + const BlockBodiesMsg + const BlockHeadersMsg + const ErrDecode + const ErrExtraStatusMsg + const ErrGenesisBlockMismatch + const ErrInvalidMsgCode + const ErrMsgTooLarge + const ErrNetworkIdMismatch + const ErrNoStatusMsg + const ErrProtocolVersionMismatch + const ErrSuspendedPeer + const GetBlockBodiesMsg + const GetBlockHeadersMsg + const GetNodeDataMsg + const GetReceiptsMsg + const NewBlockHashesMsg + const NewBlockMsg + const NodeDataMsg + const ProtocolMaxMsgSize + const ReceiptsMsg + const StatusMsg + const TxMsg + var DefaultConfig = Config + var ProtocolLengths = []uint64 + var ProtocolName = "eth" + var ProtocolVersions = []uint + func CreateConsensusEngine(ctx *node.ServiceContext, config *ethash.Config, ...) consensus.Engine + func CreateDB(ctx *node.ServiceContext, config *Config, name string) (ethdb.Database, error) + func NewBloomIndexer(db ethdb.Database, size uint64) *core.ChainIndexer + type Baboqoo struct + ApiBackend *EthApiBackend + func New(ctx *node.ServiceContext, config *Config) (*Baboqoo, error) + func (s *Baboqoo) APIs() []rpc.API + func (s *Baboqoo) AccountManager() *accounts.Manager + func (s *Baboqoo) AddLesServer(ls LesServer) + func (s *Baboqoo) BlockChain() *core.BlockChain + func (s *Baboqoo) ChainDb() ethdb.Database + func (s *Baboqoo) Downloader() *downloader.Downloader + func (s *Baboqoo) Engine() consensus.Engine + func (s *Baboqoo) EthVersion() int + func (s *Baboqoo) Etherbase() (eb common.Address, err error) + func (s *Baboqoo) EventMux() *event.TypeMux + func (s *Baboqoo) IsListening() bool + func (s *Baboqoo) IsMining() bool + func (s *Baboqoo) Miner() *miner.Miner + func (s *Baboqoo) NetVersion() uint64 + func (s *Baboqoo) Protocols() []p2p.Protocol + func (s *Baboqoo) ResetWithGenesisBlock(gb *types.Block) + func (s *Baboqoo) Start(srvr *p2p.Server) error + func (s *Baboqoo) StartMining(local bool) error + func (s *Baboqoo) Stop() error + func (s *Baboqoo) StopMining() + func (s *Baboqoo) TxPool() *core.TxPool + func (self *Baboqoo) SetEtherbase(etherbase common.Address) + type BloomIndexer struct + func (b *BloomIndexer) Commit() error + func (b *BloomIndexer) Process(header *types.Header) + func (b *BloomIndexer) Reset(section uint64, lastSectionHead common.Hash) error + type Config struct + DatabaseCache int + DatabaseHandles int + DocRoot string + EnablePreimageRecording bool + Ethash ethash.Config + Etherbase common.Address + ExtraData []byte + GPO gasprice.Config + GasPrice *big.Int + Genesis *core.Genesis + LightPeers int + LightServ int + MinerThreads int + NetworkId uint64 + NoPruning bool + SkipBcVersionCheck bool + SyncMode downloader.SyncMode + TrieCache int + TrieTimeout time.Duration + TxPool core.TxPoolConfig + func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error + func (c Config) MarshalTOML() (interface{}, error) + type EthApiBackend struct + func (b *EthApiBackend) AccountManager() *accounts.Manager + func (b *EthApiBackend) BlockByNumber(ctx context.Context, blockNr rpc.BlockNumber) (*types.Block, error) + func (b *EthApiBackend) BloomStatus() (uint64, uint64) + func (b *EthApiBackend) ChainConfig() *params.ChainConfig + func (b *EthApiBackend) ChainDb() ethdb.Database + func (b *EthApiBackend) CurrentBlock() *types.Block + func (b *EthApiBackend) Downloader() *downloader.Downloader + func (b *EthApiBackend) EventMux() *event.TypeMux + func (b *EthApiBackend) GetBlock(ctx context.Context, blockHash common.Hash) (*types.Block, error) + func (b *EthApiBackend) GetEVM(ctx context.Context, msg core.Message, state *state.StateDB, ...) (*vm.EVM, func() error, error) + func (b *EthApiBackend) GetLogs(ctx context.Context, blockHash common.Hash) ([][]*types.Log, error) + func (b *EthApiBackend) GetPoolNonce(ctx context.Context, addr common.Address) (uint64, error) + func (b *EthApiBackend) GetPoolTransaction(hash common.Hash) *types.Transaction + func (b *EthApiBackend) GetPoolTransactions() (types.Transactions, error) + func (b *EthApiBackend) GetReceipts(ctx context.Context, blockHash common.Hash) (types.Receipts, error) + func (b *EthApiBackend) GetTd(blockHash common.Hash) *big.Int + func (b *EthApiBackend) HeaderByNumber(ctx context.Context, blockNr rpc.BlockNumber) (*types.Header, error) + func (b *EthApiBackend) ProtocolVersion() int + func (b *EthApiBackend) SendTx(ctx context.Context, signedTx *types.Transaction) error + func (b *EthApiBackend) ServiceFilter(ctx context.Context, session *bloombits.MatcherSession) + func (b *EthApiBackend) SetHead(number uint64) + func (b *EthApiBackend) StateAndHeaderByNumber(ctx context.Context, blockNr rpc.BlockNumber) (*state.StateDB, *types.Header, error) + func (b *EthApiBackend) Stats() (pending int, queued int) + func (b *EthApiBackend) SubscribeChainEvent(ch chan<- core.ChainEvent) event.Subscription + func (b *EthApiBackend) SubscribeChainHeadEvent(ch chan<- core.ChainHeadEvent) event.Subscription + func (b *EthApiBackend) SubscribeChainSideEvent(ch chan<- core.ChainSideEvent) event.Subscription + func (b *EthApiBackend) SubscribeLogsEvent(ch chan<- []*types.Log) event.Subscription + func (b *EthApiBackend) SubscribeRemovedLogsEvent(ch chan<- core.RemovedLogsEvent) event.Subscription + func (b *EthApiBackend) SubscribeTxPreEvent(ch chan<- core.TxPreEvent) event.Subscription + func (b *EthApiBackend) SuggestPrice(ctx context.Context) (*big.Int, error) + func (b *EthApiBackend) TxPoolContent() (map[common.Address]types.Transactions, map[common.Address]types.Transactions) + type LesServer interface + Protocols func() []p2p.Protocol + SetBloomBitsIndexer func(bbIndexer *core.ChainIndexer) + Start func(srvr *p2p.Server) + Stop func() + type NodeInfo struct + Config *params.ChainConfig + Difficulty *big.Int + Genesis common.Hash + Head common.Hash + Network uint64 + type PeerInfo struct + Difficulty *big.Int + Head string + Version int + type PrivateAdminAPI struct + func NewPrivateAdminAPI(eth *Baboqoo) *PrivateAdminAPI + func (api *PrivateAdminAPI) ExportChain(file string) (bool, error) + func (api *PrivateAdminAPI) ImportChain(file string) (bool, error) + type PrivateDebugAPI struct + func NewPrivateDebugAPI(config *params.ChainConfig, eth *Baboqoo) *PrivateDebugAPI + func (api *PrivateDebugAPI) GetBadBlocks(ctx context.Context) ([]core.BadBlockArgs, error) + func (api *PrivateDebugAPI) GetModifiedAccountsByHash(startHash common.Hash, endHash *common.Hash) ([]common.Address, error) + func (api *PrivateDebugAPI) GetModifiedAccountsByNumber(startNum uint64, endNum *uint64) ([]common.Address, error) + func (api *PrivateDebugAPI) Preimage(ctx context.Context, hash common.Hash) (hexutil.Bytes, error) + func (api *PrivateDebugAPI) StorageRangeAt(ctx context.Context, blockHash common.Hash, txIndex int, ...) (StorageRangeResult, error) + func (api *PrivateDebugAPI) TraceBlock(ctx context.Context, blob []byte, config *TraceConfig) ([]*txTraceResult, error) + func (api *PrivateDebugAPI) TraceBlockByHash(ctx context.Context, hash common.Hash, config *TraceConfig) ([]*txTraceResult, error) + func (api *PrivateDebugAPI) TraceBlockByNumber(ctx context.Context, number rpc.BlockNumber, config *TraceConfig) ([]*txTraceResult, error) + func (api *PrivateDebugAPI) TraceBlockFromFile(ctx context.Context, file string, config *TraceConfig) ([]*txTraceResult, error) + func (api *PrivateDebugAPI) TraceChain(ctx context.Context, start, end rpc.BlockNumber, config *TraceConfig) (*rpc.Subscription, error) + func (api *PrivateDebugAPI) TraceTransaction(ctx context.Context, hash common.Hash, config *TraceConfig) (interface{}, error) + type PrivateMinerAPI struct + func NewPrivateMinerAPI(e *Baboqoo) *PrivateMinerAPI + func (api *PrivateMinerAPI) GetHashrate() uint64 + func (api *PrivateMinerAPI) SetEtherbase(etherbase common.Address) bool + func (api *PrivateMinerAPI) SetExtra(extra string) (bool, error) + func (api *PrivateMinerAPI) SetGasPrice(gasPrice hexutil.Big) bool + func (api *PrivateMinerAPI) Start(threads *int) error + func (api *PrivateMinerAPI) Stop() bool + type ProtocolManager struct + SubProtocols []p2p.Protocol + func NewProtocolManager(config *params.ChainConfig, mode downloader.SyncMode, networkId uint64, ...) (*ProtocolManager, error) + func (pm *ProtocolManager) BroadcastBlock(block *types.Block, propagate bool) + func (pm *ProtocolManager) BroadcastTx(hash common.Hash, tx *types.Transaction) + func (pm *ProtocolManager) Start(maxPeers int) + func (pm *ProtocolManager) Stop() + func (self *ProtocolManager) NodeInfo() *NodeInfo + type PublicBaboqooAPI struct + func NewPublicBaboqooAPI(e *Baboqoo) *PublicBaboqooAPI + func (api *PublicBaboqooAPI) Coinbase() (common.Address, error) + func (api *PublicBaboqooAPI) Etherbase() (common.Address, error) + func (api *PublicBaboqooAPI) Hashrate() hexutil.Uint64 + type PublicDebugAPI struct + func NewPublicDebugAPI(eth *Baboqoo) *PublicDebugAPI + func (api *PublicDebugAPI) DumpBlock(blockNr rpc.BlockNumber) (state.Dump, error) + type PublicMinerAPI struct + func NewPublicMinerAPI(e *Baboqoo) *PublicMinerAPI + func (api *PublicMinerAPI) GetWork() ([3]string, error) + func (api *PublicMinerAPI) Mining() bool + func (api *PublicMinerAPI) SubmitHashrate(hashrate hexutil.Uint64, id common.Hash) bool + func (api *PublicMinerAPI) SubmitWork(nonce types.BlockNonce, solution, digest common.Hash) bool + type StorageRangeResult struct + NextKey *common.Hash + Storage storageMap + type TraceConfig struct + Reexec *uint64 + Timeout *string + Tracer *string