Documentation
¶
Index ¶
Constants ¶
View Source
const (
PackageName = "矿工挖矿奖励"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChainReader ¶
type ChainReader interface {
// Config retrieves the blockchain's chain configuration.
Config() *params.ChainConfig
// CurrentHeader retrieves the current header from the local chain.
CurrentHeader() *types.Header
// GetHeader retrieves a block header from the database by hash and number.
GetHeader(hash []common.CoinRoot, number uint64) *types.Header
// GetHeaderByNumber retrieves a block header from the database by number.
GetHeaderByNumber(number uint64) *types.Header
// GetHeaderByHash retrieves a block header from the database by its hash.
GetHeaderByHash(hash []common.CoinRoot) *types.Header
GetBlockByNumber(number uint64) *types.Block
// GetBlock retrieves a block sfrom the database by hash and number.
GetBlock(hash []common.CoinRoot, number uint64) *types.Block
StateAt(root []common.CoinRoot) (*state.StateDBManage, error)
State() (*state.StateDBManage, error)
}
type MinerOutReward ¶
type MinerOutReward struct {
PreReward []mc.MultiCoinMinerOutReward
InnerMiners []common.Address
RewardType uint8
}
Click to show internal directories.
Click to hide internal directories.