Documentation
¶
Index ¶
- Constants
- type ChainReader
- type MinerOutReward
- func (mr *MinerOutReward) GetPreMinerReward(state util.StateDB, rewardType uint8) (*big.Int, error)
- func (mr *MinerOutReward) SetMinerOutRewards(curReward *big.Int, state util.StateDB, num uint64, parentHash common.Hash, ...) map[common.Address]*big.Int
- func (mr *MinerOutReward) SetPreMinerReward(state util.StateDB, reward *big.Int, rewardType uint8)
Constants ¶
View Source
const (
PackageName = "矿工挖矿奖励"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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.Hash, 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.Hash) *types.Header
GetBlockByNumber(number uint64) *types.Block
// GetBlock retrieves a block sfrom the database by hash and number.
GetBlock(hash common.Hash, number uint64) *types.Block
StateAt(root common.Hash) (*state.StateDB, error)
State() (*state.StateDB, error)
}
type MinerOutReward ¶
type MinerOutReward struct {
}
func (*MinerOutReward) GetPreMinerReward ¶
func (*MinerOutReward) SetMinerOutRewards ¶
func (*MinerOutReward) SetPreMinerReward ¶
Click to show internal directories.
Click to hide internal directories.