Documentation ¶
Index ¶
- func NewEthConfig(ctx *cli.Context, stack *node.Node) *eth.Config
- func NewNodeConfig(ctx *cli.Context) *node.Config
- type EthState
- func (es *EthState) AccumulateRewards(config *params.ChainConfig, strategy *emtTypes.Strategy)
- func (es *EthState) Commit(receiver common.Address) (common.Hash, error)
- func (es *EthState) DeliverTx(tx *ethTypes.Transaction) abciTypes.ResponseDeliverTx
- func (es *EthState) EndBlock()
- func (es *EthState) GasLimit() *core.GasPool
- func (es *EthState) GetEthState() *state.StateDB
- func (es *EthState) Pending() (*ethTypes.Block, *state.StateDB)
- func (es *EthState) ResetWorkState(receiver common.Address) error
- func (es *EthState) SetEthConfig(ethConfig *eth.Config)
- func (es *EthState) SetEthereum(ethereum *eth.Ethereum)
- func (es *EthState) UpdateHeaderWithTimeInfo(config *params.ChainConfig, parentTime uint64, numTx uint64)
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEthConfig ¶
NewEthConfig for the ethereum services #unstable
func NewNodeConfig ¶
NewNodeConfig for p2p and network layer #unstable
Types ¶
type EthState ¶
type EthState struct {
// contains filtered or unexported fields
}
func NewEthState ¶
func NewEthState() *EthState
After NewEthState, call SetEthereum and SetEthConfig.
func (*EthState) AccumulateRewards ¶
func (es *EthState) AccumulateRewards(config *params.ChainConfig, strategy *emtTypes.Strategy)
Accumulate validator rewards.
func (*EthState) DeliverTx ¶
func (es *EthState) DeliverTx(tx *ethTypes.Transaction) abciTypes.ResponseDeliverTx
Execute the transaction.
func (*EthState) GetEthState ¶
func (*EthState) Pending ¶
Return a new block and a copy of the state from the latest work. #unstable
func (*EthState) SetEthConfig ¶
func (*EthState) SetEthereum ¶
func (*EthState) UpdateHeaderWithTimeInfo ¶
func (es *EthState) UpdateHeaderWithTimeInfo( config *params.ChainConfig, parentTime uint64, numTx uint64)
Click to show internal directories.
Click to hide internal directories.