slash

package
v0.0.0-...-50f0b53 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SlashConsensus

func SlashConsensus(ctx context.Context, a ConsensusSlasherApi, p string, from string) error

Types

type ConsensusSlasherApi

type ConsensusSlasherApi interface {
	ChainHead(context.Context) (*types.TipSet, error)
	ChainGetBlock(context.Context, cid.Cid) (*types.BlockHeader, error)
	MpoolPushMessage(ctx context.Context, msg *types.Message, spec *lapi.MessageSendSpec) (*types.SignedMessage, error)
	SyncIncomingBlocks(context.Context) (<-chan *types.BlockHeader, error)
	WalletDefaultAddress(context.Context) (address.Address, error)
	WalletSign(ctx context.Context, k address.Address, msg []byte) (*crypto.Signature, error)
}

Jump to

Keyboard shortcuts

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