slashsvc

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0, MIT Imports: 15 Imported by: 1

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)
}

Jump to

Keyboard shortcuts

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