slashfilter

package
v0.9.7-rc3 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ISlashFilter added in v0.9.5

type ISlashFilter interface {
	MinedBlock(bh *types.BlockHeader, parentEpoch abi.ChainEpoch) error
}

func NewLocalSlashFilter added in v0.9.5

func NewLocalSlashFilter(dstore ds.Batching) ISlashFilter

func NewMysqlSlashFilter added in v0.9.5

func NewMysqlSlashFilter(cfg config.MySQLConfig) (ISlashFilter, error)

type LocalSlashFilter added in v0.9.5

type LocalSlashFilter struct {
	// contains filtered or unexported fields
}

func (*LocalSlashFilter) MinedBlock added in v0.9.5

func (f *LocalSlashFilter) MinedBlock(bh *types.BlockHeader, parentEpoch abi.ChainEpoch) error

type MinedBlock added in v0.9.5

type MinedBlock struct {
	ParentEpoch int64  `gorm:"column:parent_epoch;type:bigint(20);NOT NULL"`
	ParentKey   string `gorm:"column:parent_key;type:varchar(256);NOT NULL"`

	Epoch int64  `gorm:"column:epoch;type:bigint(20);NOT NULL"`
	Miner string `gorm:"column:miner;type:varchar(256);NOT NULL"`
	Cid   string `gorm:"column:cid;type:varchar(256);NOT NULL"`
}

type MysqlSlashFilter added in v0.9.5

type MysqlSlashFilter struct {
	// contains filtered or unexported fields
}

func (*MysqlSlashFilter) MinedBlock added in v0.9.5

func (f *MysqlSlashFilter) MinedBlock(bh *types.BlockHeader, parentEpoch abi.ChainEpoch) error

Jump to

Keyboard shortcuts

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