Documentation ¶
Index ¶
- type Block
- type 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
- type Key
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ETHChain ¶
type ETHChain struct {
// contains filtered or unexported fields
}
func NewETHChain ¶
func NewETHChain(config *eth.Config, nodecfg *node.Config, etherBase *common.Address, chainDB ethdb.Database) *ETHChain
NewETHChain creates an Ethereum blockchain with the given configs.
func (*ETHChain) AddLocalTxs ¶
func (self *ETHChain) AddLocalTxs(txs []*types.Transaction) []error
func (*ETHChain) AddRemoteTxs ¶
func (self *ETHChain) AddRemoteTxs(txs []*types.Transaction) []error
func (*ETHChain) AttachEthService ¶
func (*ETHChain) BlockState ¶
Returns a new mutable state based on the given block.
func (*ETHChain) CurrentState ¶
Returns a new mutable state based on the current HEAD block.
func (*ETHChain) GetBlockByHash ¶
Retrives a block from the database by hash.
func (*ETHChain) GetGenesisBlock ¶
func (*ETHChain) GetReceiptsByHash ¶
func (*ETHChain) GetTxSubmitCh ¶
func (self *ETHChain) GetTxSubmitCh() <-chan struct{}
TODO: use SubscribeNewTxsEvent()
func (*ETHChain) NewRPCHandler ¶
func (*ETHChain) PendingSize ¶
func (*ETHChain) SetOnAPIs ¶
func (self *ETHChain) SetOnAPIs(cb dummy.OnAPIsCallbackType)
func (*ETHChain) SetOnFinalize ¶
func (self *ETHChain) SetOnFinalize(cb dummy.OnFinalizeCallbackType)
func (*ETHChain) SetOnFinalizeAndAssemble ¶
func (self *ETHChain) SetOnFinalizeAndAssemble(cb dummy.OnFinalizeAndAssembleCallbackType)
func (*ETHChain) SetOnHeaderNew ¶
func (*ETHChain) SetOnQueryAcceptedBlock ¶
func (*ETHChain) SetOnSealDrop ¶
func (*ETHChain) SetOnSealFinish ¶
func (*ETHChain) SetOnSealHash ¶
type Key ¶
type Key struct { Address common.Address PrivateKey *ecdsa.PrivateKey }
func NewKeyFromECDSA ¶
func NewKeyFromECDSA(privateKeyECDSA *ecdsa.PrivateKey) *Key
type Tx ¶
type Tx = types.Transaction
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
geth
geth is the official command-line client for Ethereum.
|
geth is the official command-line client for Ethereum. |
utils
Package utils contains internal helper functions for go-ethereum commands.
|
Package utils contains internal helper functions for go-ethereum commands. |
consensus
|
|
Package core implements the Ethereum consensus protocol.
|
Package core implements the Ethereum consensus protocol. |
Package eth implements the Ethereum protocol.
|
Package eth implements the Ethereum protocol. |
filters
Package filters implements an ethereum filtering system for block, transactions and log events.
|
Package filters implements an ethereum filtering system for block, transactions and log events. |
Package ethstats implements the network stats reporting service.
|
Package ethstats implements the network stats reporting service. |
examples
|
|
internal
|
|
debug
Package debug interfaces Go runtime debugging facilities.
|
Package debug interfaces Go runtime debugging facilities. |
ethapi
Package ethapi implements the general Ethereum API functions.
|
Package ethapi implements the general Ethereum API functions. |
Package miner implements Ethereum block creation and mining.
|
Package miner implements Ethereum block creation and mining. |
Click to show internal directories.
Click to hide internal directories.