Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsensusFault ¶
type ConsensusFault struct { // Address of the miner at fault (always an ID address). Target address.Address // Epoch of the fault, which is the higher epoch of the two blocks causing it. Epoch abi.ChainEpoch // Type of fault. Type ConsensusFaultType }
type ConsensusFaultType ¶
type ConsensusFaultType int64
const ( ConsensusFaultNone ConsensusFaultType = 0 ConsensusFaultDoubleForkMining ConsensusFaultType = 1 ConsensusFaultParentGrinding ConsensusFaultType = 2 ConsensusFaultTimeOffsetMining ConsensusFaultType = 3 )
type Externs ¶
type Externs interface { GetChainRandomness(ctx context.Context, personalization crypto.DomainSeparationTag, epoch abi.ChainEpoch, entropy []byte) ([]byte, error) GetBeaconRandomness(ctx context.Context, personalization crypto.DomainSeparationTag, epoch abi.ChainEpoch, entropy []byte) ([]byte, error) VerifyConsensusFault(ctx context.Context, h1, h2, extra []byte) (*ConsensusFault, int64) blockstore.Blockstore blockstore.Viewer }
type FvmMachine ¶
type FvmMachine struct{}
Click to show internal directories.
Click to hide internal directories.