Documentation ¶
Overview ¶
Package bna implements the Binacoin protocol.
Index ¶
- Constants
- type BadBlockArgs
- type Binacoin
- func (s *Binacoin) APIs() []rpc.API
- func (s *Binacoin) AccountManager() *accounts.Manager
- func (s *Binacoin) ArchiveMode() bool
- func (s *Binacoin) Bitherbase() (eb common.Address, err error)
- func (s *Binacoin) BlockChain() *core.BlockChain
- func (s *Binacoin) BloomIndexer() *core.ChainIndexer
- func (s *Binacoin) ChainDb() bnadb.Database
- func (s *Binacoin) Downloader() *downloader.Downloader
- func (s *Binacoin) Engine() consensus.Engine
- func (s *Binacoin) EventMux() *event.TypeMux
- func (s *Binacoin) IsListening() bool
- func (s *Binacoin) IsMining() bool
- func (s *Binacoin) Miner() *miner.Miner
- func (s *Binacoin) Protocols() []p2p.Protocol
- func (s *Binacoin) ResetWithGenesisBlock(gb *types.Block)
- func (s *Binacoin) SetBitherbase(bitherbase common.Address)
- func (s *Binacoin) Start() error
- func (s *Binacoin) StartMining(threads int) error
- func (s *Binacoin) Stop() error
- func (s *Binacoin) StopMining()
- func (s *Binacoin) Synced() bool
- func (s *Binacoin) TxPool() *core.TxPool
- type BnaAPIBackend
- func (b *BnaAPIBackend) AccountManager() *accounts.Manager
- func (b *BnaAPIBackend) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (b *BnaAPIBackend) BlockByNumber(ctx context.Context, number rpc.BlockNumber) (*types.Block, error)
- func (b *BnaAPIBackend) BlockByNumberOrHash(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) (*types.Block, error)
- func (b *BnaAPIBackend) BloomStatus() (uint64, uint64)
- func (b *BnaAPIBackend) ChainConfig() *params.ChainConfig
- func (b *BnaAPIBackend) ChainDb() bnadb.Database
- func (b *BnaAPIBackend) CurrentBlock() *types.Block
- func (b *BnaAPIBackend) CurrentHeader() *types.Header
- func (b *BnaAPIBackend) Downloader() *downloader.Downloader
- func (b *BnaAPIBackend) Engine() consensus.Engine
- func (b *BnaAPIBackend) EventMux() *event.TypeMux
- func (b *BnaAPIBackend) ExtRPCEnabled() bool
- func (b *BnaAPIBackend) FeeHistory(ctx context.Context, blockCount int, lastBlock rpc.BlockNumber, ...) (firstBlock rpc.BlockNumber, reward [][]*big.Int, baseFee []*big.Int, ...)
- func (b *BnaAPIBackend) GetEVM(ctx context.Context, msg core.Message, state *state.StateDB, ...) (*vm.EVM, func() error, error)
- func (b *BnaAPIBackend) GetLogs(ctx context.Context, hash common.Hash) ([][]*types.Log, error)
- func (b *BnaAPIBackend) GetPoolNonce(ctx context.Context, addr common.Address) (uint64, error)
- func (b *BnaAPIBackend) GetPoolTransaction(hash common.Hash) *types.Transaction
- func (b *BnaAPIBackend) GetPoolTransactions() (types.Transactions, error)
- func (b *BnaAPIBackend) GetReceipts(ctx context.Context, hash common.Hash) (types.Receipts, error)
- func (b *BnaAPIBackend) GetTd(ctx context.Context, hash common.Hash) *big.Int
- func (b *BnaAPIBackend) GetTransaction(ctx context.Context, txHash common.Hash) (*types.Transaction, common.Hash, uint64, uint64, error)
- func (b *BnaAPIBackend) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
- func (b *BnaAPIBackend) HeaderByNumber(ctx context.Context, number rpc.BlockNumber) (*types.Header, error)
- func (b *BnaAPIBackend) HeaderByNumberOrHash(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) (*types.Header, error)
- func (b *BnaAPIBackend) Miner() *miner.Miner
- func (b *BnaAPIBackend) PendingBlockAndReceipts() (*types.Block, types.Receipts)
- func (b *BnaAPIBackend) RPCGasCap() uint64
- func (b *BnaAPIBackend) RPCTxFeeCap() float64
- func (b *BnaAPIBackend) SendTx(ctx context.Context, signedTx *types.Transaction) error
- func (b *BnaAPIBackend) ServiceFilter(ctx context.Context, session *bloombits.MatcherSession)
- func (b *BnaAPIBackend) SetHead(number uint64)
- func (b *BnaAPIBackend) StartMining(threads int) error
- func (b *BnaAPIBackend) StateAndHeaderByNumber(ctx context.Context, number rpc.BlockNumber) (*state.StateDB, *types.Header, error)
- func (b *BnaAPIBackend) StateAndHeaderByNumberOrHash(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) (*state.StateDB, *types.Header, error)
- func (b *BnaAPIBackend) StateAtBlock(ctx context.Context, block *types.Block, reexec uint64, base *state.StateDB, ...) (*state.StateDB, error)
- func (b *BnaAPIBackend) StateAtTransaction(ctx context.Context, block *types.Block, txIndex int, reexec uint64) (core.Message, vm.BlockContext, *state.StateDB, error)
- func (b *BnaAPIBackend) Stats() (pending int, queued int)
- func (b *BnaAPIBackend) SubscribeChainEvent(ch chan<- core.ChainEvent) event.Subscription
- func (b *BnaAPIBackend) SubscribeChainHeadEvent(ch chan<- core.ChainHeadEvent) event.Subscription
- func (b *BnaAPIBackend) SubscribeChainSideEvent(ch chan<- core.ChainSideEvent) event.Subscription
- func (b *BnaAPIBackend) SubscribeLogsEvent(ch chan<- []*types.Log) event.Subscription
- func (b *BnaAPIBackend) SubscribeNewTxsEvent(ch chan<- core.NewTxsEvent) event.Subscription
- func (b *BnaAPIBackend) SubscribePendingLogsEvent(ch chan<- []*types.Log) event.Subscription
- func (b *BnaAPIBackend) SubscribeRemovedLogsEvent(ch chan<- core.RemovedLogsEvent) event.Subscription
- func (b *BnaAPIBackend) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
- func (b *BnaAPIBackend) TxPool() *core.TxPool
- func (b *BnaAPIBackend) TxPoolContent() (map[common.Address]types.Transactions, map[common.Address]types.Transactions)
- func (b *BnaAPIBackend) TxPoolContentFrom(addr common.Address) (types.Transactions, types.Transactions)
- func (b *BnaAPIBackend) UnprotectedAllowed() bool
- type Config
- type PrivateAdminAPI
- type PrivateDebugAPI
- func (api *PrivateDebugAPI) GetBadBlocks(ctx context.Context) ([]*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(blockHash common.Hash, txIndex int, contractAddress common.Address, ...) (StorageRangeResult, error)
- type PrivateMinerAPI
- func (api *PrivateMinerAPI) SetBitherbase(bitherbase common.Address) bool
- func (api *PrivateMinerAPI) SetExtra(extra string) (bool, error)
- func (api *PrivateMinerAPI) SetGasLimit(gasLimit hexutil.Uint64) bool
- func (api *PrivateMinerAPI) SetGasPrice(gasPrice hexutil.Big) bool
- func (api *PrivateMinerAPI) SetRecommitInterval(interval int)
- func (api *PrivateMinerAPI) Start(threads *int) error
- func (api *PrivateMinerAPI) Stop()
- type PublicBinacoinAPI
- type PublicDebugAPI
- type PublicMinerAPI
- type StorageRangeResult
Constants ¶
const AccountRangeMaxResults = 256
AccountRangeMaxResults is the maximum number of results to be returned per call
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadBlockArgs ¶
type BadBlockArgs struct { Hash common.Hash `json:"hash"` Block map[string]interface{} `json:"block"` RLP string `json:"rlp"` }
BadBlockArgs represents the entries in the list returned when bad blocks are queried.
type Binacoin ¶
type Binacoin struct { APIBackend *BnaAPIBackend // contains filtered or unexported fields }
Binacoin implements the Binacoin full node service.
func New ¶
New creates a new Binacoin object (including the initialisation of the common Binacoin object)
func (*Binacoin) APIs ¶
APIs return the collection of RPC services the binacoin package offers. NOTE, some of these services probably need to be moved to somewhere else.
func (*Binacoin) AccountManager ¶
func (*Binacoin) ArchiveMode ¶
func (*Binacoin) BlockChain ¶
func (s *Binacoin) BlockChain() *core.BlockChain
func (*Binacoin) BloomIndexer ¶
func (s *Binacoin) BloomIndexer() *core.ChainIndexer
func (*Binacoin) Downloader ¶
func (s *Binacoin) Downloader() *downloader.Downloader
func (*Binacoin) IsListening ¶
func (*Binacoin) Protocols ¶
Protocols returns all the currently configured network protocols to start.
func (*Binacoin) ResetWithGenesisBlock ¶
func (*Binacoin) SetBitherbase ¶
SetBitherbase sets the mining reward address.
func (*Binacoin) Start ¶
Start implements node.Lifecycle, starting all internal goroutines needed by the Binacoin protocol implementation.
func (*Binacoin) StartMining ¶
StartMining starts the miner with the given number of CPU threads. If mining is already running, this method adjust the number of threads allowed to use and updates the minimum price required by the transaction pool.
func (*Binacoin) Stop ¶
Stop implements node.Lifecycle, terminating all internal goroutines used by the Binacoin protocol.
func (*Binacoin) StopMining ¶
func (s *Binacoin) StopMining()
StopMining terminates the miner, both at the consensus engine level as well as at the block creation level.
type BnaAPIBackend ¶
type BnaAPIBackend struct {
// contains filtered or unexported fields
}
BnaAPIBackend implements bnaapi.Backend for full nodes
func (*BnaAPIBackend) AccountManager ¶
func (b *BnaAPIBackend) AccountManager() *accounts.Manager
func (*BnaAPIBackend) BlockByHash ¶
func (*BnaAPIBackend) BlockByNumber ¶
func (b *BnaAPIBackend) BlockByNumber(ctx context.Context, number rpc.BlockNumber) (*types.Block, error)
func (*BnaAPIBackend) BlockByNumberOrHash ¶
func (b *BnaAPIBackend) BlockByNumberOrHash(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) (*types.Block, error)
func (*BnaAPIBackend) BloomStatus ¶
func (b *BnaAPIBackend) BloomStatus() (uint64, uint64)
func (*BnaAPIBackend) ChainConfig ¶
func (b *BnaAPIBackend) ChainConfig() *params.ChainConfig
ChainConfig returns the active chain configuration.
func (*BnaAPIBackend) ChainDb ¶
func (b *BnaAPIBackend) ChainDb() bnadb.Database
func (*BnaAPIBackend) CurrentBlock ¶
func (b *BnaAPIBackend) CurrentBlock() *types.Block
func (*BnaAPIBackend) CurrentHeader ¶
func (b *BnaAPIBackend) CurrentHeader() *types.Header
func (*BnaAPIBackend) Downloader ¶
func (b *BnaAPIBackend) Downloader() *downloader.Downloader
func (*BnaAPIBackend) Engine ¶
func (b *BnaAPIBackend) Engine() consensus.Engine
func (*BnaAPIBackend) EventMux ¶
func (b *BnaAPIBackend) EventMux() *event.TypeMux
func (*BnaAPIBackend) ExtRPCEnabled ¶
func (b *BnaAPIBackend) ExtRPCEnabled() bool
func (*BnaAPIBackend) FeeHistory ¶
func (b *BnaAPIBackend) FeeHistory(ctx context.Context, blockCount int, lastBlock rpc.BlockNumber, rewardPercentiles []float64) (firstBlock rpc.BlockNumber, reward [][]*big.Int, baseFee []*big.Int, gasUsedRatio []float64, err error)
func (*BnaAPIBackend) GetPoolNonce ¶
func (*BnaAPIBackend) GetPoolTransaction ¶
func (b *BnaAPIBackend) GetPoolTransaction(hash common.Hash) *types.Transaction
func (*BnaAPIBackend) GetPoolTransactions ¶
func (b *BnaAPIBackend) GetPoolTransactions() (types.Transactions, error)
func (*BnaAPIBackend) GetReceipts ¶
func (*BnaAPIBackend) GetTransaction ¶
func (*BnaAPIBackend) HeaderByHash ¶
func (*BnaAPIBackend) HeaderByNumber ¶
func (b *BnaAPIBackend) HeaderByNumber(ctx context.Context, number rpc.BlockNumber) (*types.Header, error)
func (*BnaAPIBackend) HeaderByNumberOrHash ¶
func (b *BnaAPIBackend) HeaderByNumberOrHash(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) (*types.Header, error)
func (*BnaAPIBackend) Miner ¶
func (b *BnaAPIBackend) Miner() *miner.Miner
func (*BnaAPIBackend) PendingBlockAndReceipts ¶
func (b *BnaAPIBackend) PendingBlockAndReceipts() (*types.Block, types.Receipts)
func (*BnaAPIBackend) RPCGasCap ¶
func (b *BnaAPIBackend) RPCGasCap() uint64
func (*BnaAPIBackend) RPCTxFeeCap ¶
func (b *BnaAPIBackend) RPCTxFeeCap() float64
func (*BnaAPIBackend) SendTx ¶
func (b *BnaAPIBackend) SendTx(ctx context.Context, signedTx *types.Transaction) error
func (*BnaAPIBackend) ServiceFilter ¶
func (b *BnaAPIBackend) ServiceFilter(ctx context.Context, session *bloombits.MatcherSession)
func (*BnaAPIBackend) SetHead ¶
func (b *BnaAPIBackend) SetHead(number uint64)
func (*BnaAPIBackend) StartMining ¶
func (b *BnaAPIBackend) StartMining(threads int) error
func (*BnaAPIBackend) StateAndHeaderByNumber ¶
func (b *BnaAPIBackend) StateAndHeaderByNumber(ctx context.Context, number rpc.BlockNumber) (*state.StateDB, *types.Header, error)
func (*BnaAPIBackend) StateAndHeaderByNumberOrHash ¶
func (b *BnaAPIBackend) StateAndHeaderByNumberOrHash(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) (*state.StateDB, *types.Header, error)
func (*BnaAPIBackend) StateAtBlock ¶
func (*BnaAPIBackend) StateAtTransaction ¶
func (*BnaAPIBackend) Stats ¶
func (b *BnaAPIBackend) Stats() (pending int, queued int)
func (*BnaAPIBackend) SubscribeChainEvent ¶
func (b *BnaAPIBackend) SubscribeChainEvent(ch chan<- core.ChainEvent) event.Subscription
func (*BnaAPIBackend) SubscribeChainHeadEvent ¶
func (b *BnaAPIBackend) SubscribeChainHeadEvent(ch chan<- core.ChainHeadEvent) event.Subscription
func (*BnaAPIBackend) SubscribeChainSideEvent ¶
func (b *BnaAPIBackend) SubscribeChainSideEvent(ch chan<- core.ChainSideEvent) event.Subscription
func (*BnaAPIBackend) SubscribeLogsEvent ¶
func (b *BnaAPIBackend) SubscribeLogsEvent(ch chan<- []*types.Log) event.Subscription
func (*BnaAPIBackend) SubscribeNewTxsEvent ¶
func (b *BnaAPIBackend) SubscribeNewTxsEvent(ch chan<- core.NewTxsEvent) event.Subscription
func (*BnaAPIBackend) SubscribePendingLogsEvent ¶
func (b *BnaAPIBackend) SubscribePendingLogsEvent(ch chan<- []*types.Log) event.Subscription
func (*BnaAPIBackend) SubscribeRemovedLogsEvent ¶
func (b *BnaAPIBackend) SubscribeRemovedLogsEvent(ch chan<- core.RemovedLogsEvent) event.Subscription
func (*BnaAPIBackend) SuggestGasTipCap ¶
func (*BnaAPIBackend) TxPool ¶
func (b *BnaAPIBackend) TxPool() *core.TxPool
func (*BnaAPIBackend) TxPoolContent ¶
func (b *BnaAPIBackend) TxPoolContent() (map[common.Address]types.Transactions, map[common.Address]types.Transactions)
func (*BnaAPIBackend) TxPoolContentFrom ¶
func (b *BnaAPIBackend) TxPoolContentFrom(addr common.Address) (types.Transactions, types.Transactions)
func (*BnaAPIBackend) UnprotectedAllowed ¶
func (b *BnaAPIBackend) UnprotectedAllowed() bool
type Config ¶
Config contains the configuration options of the bna protocol. Deprecated: use bnaconfig.Config instead.
type PrivateAdminAPI ¶
type PrivateAdminAPI struct {
// contains filtered or unexported fields
}
PrivateAdminAPI is the collection of Binacoin full node-related APIs exposed over the private admin endpoint.
func NewPrivateAdminAPI ¶
func NewPrivateAdminAPI(bna *Binacoin) *PrivateAdminAPI
NewPrivateAdminAPI creates a new API definition for the full node private admin methods of the Binacoin service.
func (*PrivateAdminAPI) ExportChain ¶
ExportChain exports the current blockchain into a local file, or a range of blocks if first and last are non-nil
func (*PrivateAdminAPI) ImportChain ¶
func (api *PrivateAdminAPI) ImportChain(file string) (bool, error)
ImportChain imports a blockchain from a local file.
type PrivateDebugAPI ¶
type PrivateDebugAPI struct {
// contains filtered or unexported fields
}
PrivateDebugAPI is the collection of Binacoin full node APIs exposed over the private debugging endpoint.
func NewPrivateDebugAPI ¶
func NewPrivateDebugAPI(bna *Binacoin) *PrivateDebugAPI
NewPrivateDebugAPI creates a new API definition for the full node-related private debug methods of the Binacoin service.
func (*PrivateDebugAPI) GetBadBlocks ¶
func (api *PrivateDebugAPI) GetBadBlocks(ctx context.Context) ([]*BadBlockArgs, error)
GetBadBlocks returns a list of the last 'bad blocks' that the client has seen on the network and returns them as a JSON list of block-hashes
func (*PrivateDebugAPI) GetModifiedAccountsByHash ¶
func (api *PrivateDebugAPI) GetModifiedAccountsByHash(startHash common.Hash, endHash *common.Hash) ([]common.Address, error)
GetModifiedAccountsByHash returns all accounts that have changed between the two blocks specified. A change is defined as a difference in nonce, balance, code hash, or storage hash.
With one parameter, returns the list of accounts modified in the specified block.
func (*PrivateDebugAPI) GetModifiedAccountsByNumber ¶
func (api *PrivateDebugAPI) GetModifiedAccountsByNumber(startNum uint64, endNum *uint64) ([]common.Address, error)
GetModifiedAccountsByNumber returns all accounts that have changed between the two blocks specified. A change is defined as a difference in nonce, balance, code hash, or storage hash.
With one parameter, returns the list of accounts modified in the specified block.
func (*PrivateDebugAPI) Preimage ¶
Preimage is a debug API function that returns the preimage for a sha3 hash, if known.
func (*PrivateDebugAPI) StorageRangeAt ¶
func (api *PrivateDebugAPI) StorageRangeAt(blockHash common.Hash, txIndex int, contractAddress common.Address, keyStart hexutil.Bytes, maxResult int) (StorageRangeResult, error)
StorageRangeAt returns the storage at the given block height and transaction index.
type PrivateMinerAPI ¶
type PrivateMinerAPI struct {
// contains filtered or unexported fields
}
PrivateMinerAPI provides private RPC methods to control the miner. These methods can be abused by external users and must be considered insecure for use by untrusted users.
func NewPrivateMinerAPI ¶
func NewPrivateMinerAPI(e *Binacoin) *PrivateMinerAPI
NewPrivateMinerAPI create a new RPC service which controls the miner of this node.
func (*PrivateMinerAPI) SetBitherbase ¶
func (api *PrivateMinerAPI) SetBitherbase(bitherbase common.Address) bool
SetBitherbase sets the bitherbase of the miner
func (*PrivateMinerAPI) SetExtra ¶
func (api *PrivateMinerAPI) SetExtra(extra string) (bool, error)
SetExtra sets the extra data string that is included when this miner mines a block.
func (*PrivateMinerAPI) SetGasLimit ¶
func (api *PrivateMinerAPI) SetGasLimit(gasLimit hexutil.Uint64) bool
SetGasLimit sets the gaslimit to target towards during mining.
func (*PrivateMinerAPI) SetGasPrice ¶
func (api *PrivateMinerAPI) SetGasPrice(gasPrice hexutil.Big) bool
SetGasPrice sets the minimum accepted gas price for the miner.
func (*PrivateMinerAPI) SetRecommitInterval ¶
func (api *PrivateMinerAPI) SetRecommitInterval(interval int)
SetRecommitInterval updates the interval for miner sealing work recommitting.
func (*PrivateMinerAPI) Start ¶
func (api *PrivateMinerAPI) Start(threads *int) error
Start starts the miner with the given number of threads. If threads is nil, the number of workers started is equal to the number of logical CPUs that are usable by this process. If mining is already running, this method adjust the number of threads allowed to use and updates the minimum price required by the transaction pool.
func (*PrivateMinerAPI) Stop ¶
func (api *PrivateMinerAPI) Stop()
Stop terminates the miner, both at the consensus engine level as well as at the block creation level.
type PublicBinacoinAPI ¶
type PublicBinacoinAPI struct {
// contains filtered or unexported fields
}
PublicBinacoinAPI provides an API to access Binacoin full node-related information.
func NewPublicBinacoinAPI ¶
func NewPublicBinacoinAPI(e *Binacoin) *PublicBinacoinAPI
NewPublicBinacoinAPI creates a new Binacoin protocol API for full nodes.
func (*PublicBinacoinAPI) Bitherbase ¶
func (api *PublicBinacoinAPI) Bitherbase() (common.Address, error)
Bitherbase is the address that mining rewards will be send to
func (*PublicBinacoinAPI) Coinbase ¶
func (api *PublicBinacoinAPI) Coinbase() (common.Address, error)
Coinbase is the address that mining rewards will be send to (alias for Bitherbase)
func (*PublicBinacoinAPI) Hashrate ¶
func (api *PublicBinacoinAPI) Hashrate() hexutil.Uint64
Hashrate returns the POW hashrate
type PublicDebugAPI ¶
type PublicDebugAPI struct {
// contains filtered or unexported fields
}
PublicDebugAPI is the collection of Binacoin full node APIs exposed over the public debugging endpoint.
func NewPublicDebugAPI ¶
func NewPublicDebugAPI(bna *Binacoin) *PublicDebugAPI
NewPublicDebugAPI creates a new API definition for the full node- related public debug methods of the Binacoin service.
func (*PublicDebugAPI) AccountRange ¶
func (api *PublicDebugAPI) AccountRange(blockNrOrHash rpc.BlockNumberOrHash, start []byte, maxResults int, nocode, nostorage, incompletes bool) (state.IteratorDump, error)
AccountRange enumerates all accounts in the given block and start point in paging request
func (*PublicDebugAPI) DumpBlock ¶
func (api *PublicDebugAPI) DumpBlock(blockNr rpc.BlockNumber) (state.Dump, error)
DumpBlock retrieves the entire state of the database at a given block.
type PublicMinerAPI ¶
type PublicMinerAPI struct {
// contains filtered or unexported fields
}
PublicMinerAPI provides an API to control the miner. It offers only methods that operate on data that pose no security risk when it is publicly accessible.
func NewPublicMinerAPI ¶
func NewPublicMinerAPI(e *Binacoin) *PublicMinerAPI
NewPublicMinerAPI create a new PublicMinerAPI instance.
func (*PublicMinerAPI) Mining ¶
func (api *PublicMinerAPI) Mining() bool
Mining returns an indication if this node is currently mining.
type StorageRangeResult ¶
type StorageRangeResult struct { Storage storageMap `json:"storage"` NextKey *common.Hash `json:"nextKey"` // nil if Storage includes the last key in the trie. }
StorageRangeResult is the result of a debug_storageRangeAt API call.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package bnaconfig contains the configuration of the bna and LES protocols.
|
Package bnaconfig contains the configuration of the bna and LES protocols. |
Package catalyst implements the temporary eth1/eth2 RPC integration.
|
Package catalyst implements the temporary eth1/eth2 RPC integration. |
Package downloader contains the manual full chain synchronisation.
|
Package downloader contains the manual full chain synchronisation. |
Package fetcher contains the announcement based header, blocks or transaction synchronisation.
|
Package fetcher contains the announcement based header, blocks or transaction synchronisation. |
Package filters implements an binacoin filtering system for block, transactions and log events.
|
Package filters implements an binacoin filtering system for block, transactions and log events. |
protocols
|
|
Package tracers is a collection of JavaScript transaction tracers.
|
Package tracers is a collection of JavaScript transaction tracers. |
internal/tracers
Package tracers contains the actual JavaScript tracer assets.
|
Package tracers contains the actual JavaScript tracer assets. |