aurainterfaces

package
v0.0.0-...-92d349b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

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 None

type None SealKind

Engine does not generate seal for this block right now.

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 SealKind

type SealKind [][]byte

type SealProposal

type SealProposal SealKind

Proposal seal; should be broadcasted, but not inserted into blockchain.

type SealRegular

type SealRegular SealKind

Regular block seal; should be part of the 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
)

type ValidatorSetABI

type ValidatorSetABI interface {
	GetValidators() ([]byte, abiDecoder)
	ShouldValidatorReport(ourAddr, maliciousValidatorAddress libcommon.Address, blockNum uint64) ([]byte, abiDecoder)
}

see openethereum/crates/ethcore/res/contracts/validator_set.json

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL