Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockRewardABI ¶
type BlockRewardABI interface {
Reward(benefactors []libcommon.Address, kind []RewardKind) ([]libcommon.Address, []*uint256.Int, error)
}
see openethereum/crates/ethcore/res/contracts/block_reward.json
type RewardKind ¶
type RewardKind uint16
RewardKind - The kind of block reward. Depending on the consensus engine the allocated block reward might have different semantics which could lead e.g. to different reward values.
const ( // RewardAuthor - attributed to the block author. RewardAuthor RewardKind = 0 // RewardEmptyStep - attributed to the author(s) of empty step(s) included in the block (AuthorityRound engine). RewardEmptyStep RewardKind = 1 // RewardExternal - attributed by an external protocol (e.g. block reward contract). RewardExternal RewardKind = 2 // RewardUncle - attributed to the block uncle(s) with given difference. RewardUncle RewardKind = 3 )
type SealProposal ¶
type SealProposal SealKind
Proposal seal; should be broadcasted, but not inserted into blockchain.
type SealingState ¶
type SealingState uint8
/ The type of sealing the engine is currently able to perform.
const ( /// The engine is ready to seal a block. SealingStateReady SealingState = 0 /// The engine can't seal at the moment, and no block should be prepared and queued. SealingStateNotReady SealingState = 1 /// The engine does not seal internally. SealingStateExternal SealingState = 2 )
Click to show internal directories.
Click to hide internal directories.