Documentation ¶
Index ¶
- func IsPublic() bool
- func SendBlockReward(bState *state.BlockState, coinbaseAccount []byte) error
- type ChainType
- type DummyChain
- func (bc *DummyChain) BestBlockNo() uint64
- func (bc *DummyChain) ExecuteTxs(txs []*types.Tx) ([]*types.Receipt, error)
- func (bc *DummyChain) GetBestBlock() (*types.Block, error)
- func (bc *DummyChain) GetBlockByNo(blockNo types.BlockNo) (*types.Block, error)
- func (bc *DummyChain) Release()
- func (bc *DummyChain) SetBestBlockId(value []byte)
- func (bc *DummyChain) SetBestBlockNo(value uint64)
- func (bc *DummyChain) SetCoinbaseAccount(address []byte)
- func (bc *DummyChain) SetTimestamp(value int64)
- type TxExecFn
- type ValidatePostFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendBlockReward ¶
func SendBlockReward(bState *state.BlockState, coinbaseAccount []byte) error
Types ¶
type DummyChain ¶
type DummyChain struct { HardforkConfig *config.HardforkConfig // contains filtered or unexported fields }
func LoadDummyChainEx ¶
func LoadDummyChainEx(chainType ChainType) (*DummyChain, error)
func (*DummyChain) BestBlockNo ¶
func (bc *DummyChain) BestBlockNo() uint64
func (*DummyChain) ExecuteTxs ¶
func (*DummyChain) GetBestBlock ¶
func (bc *DummyChain) GetBestBlock() (*types.Block, error)
func (*DummyChain) GetBlockByNo ¶
func (*DummyChain) Release ¶
func (bc *DummyChain) Release()
func (*DummyChain) SetBestBlockId ¶
func (bc *DummyChain) SetBestBlockId(value []byte)
func (*DummyChain) SetBestBlockNo ¶
func (bc *DummyChain) SetBestBlockNo(value uint64)
func (*DummyChain) SetCoinbaseAccount ¶
func (bc *DummyChain) SetCoinbaseAccount(address []byte)
func (*DummyChain) SetTimestamp ¶
func (bc *DummyChain) SetTimestamp(value int64)
type TxExecFn ¶
type TxExecFn func(blockState *state.BlockState, tx types.Transaction) error
func NewTxExecutor ¶
func NewTxExecutor(execCtx context.Context, ccc consensus.ChainConsensusCluster, cdb contract.ChainAccessor, bi *types.BlockHeaderInfo, executionMode int) TxExecFn
type ValidatePostFn ¶
type ValidatePostFn func() error
Click to show internal directories.
Click to hide internal directories.