mempool

package
v0.2.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool interface {
	Start()
	Close()

	AddVote(d *primitives.MultiValidatorVote, s state.State) error
	AddDeposit(d *primitives.Deposit) error
	AddExit(d *primitives.Exit) error
	AddPartialExit(d *primitives.PartialExit) error
	AddTx(d *primitives.Tx) error
	AddVoteSlashing(d *primitives.VoteSlashing) error
	AddProposerSlashing(d *primitives.ProposerSlashing) error
	AddRANDAOSlashing(d *primitives.RANDAOSlashing) error
	AddGovernanceVote(d *primitives.GovernanceVote) error
	AddCoinProof(d *burnproof.CoinsProofSerializable) error

	GetVotes(slotToPropose uint64, s state.State, index uint64) []*primitives.MultiValidatorVote
	GetDeposits(s state.State) ([]*primitives.Deposit, state.State)
	GetExits(s state.State) ([]*primitives.Exit, state.State)
	GetPartialExits(s state.State) ([]*primitives.PartialExit, state.State)
	GetCoinProofs(s state.State) ([]*burnproof.CoinsProofSerializable, state.State)
	GetTxs(s state.State, feeReceiver [20]byte) ([]*primitives.Tx, state.State)
	GetVoteSlashings(s state.State) ([]*primitives.VoteSlashing, state.State)
	GetProposerSlashings(s state.State) ([]*primitives.ProposerSlashing, state.State)
	GetRANDAOSlashings(s state.State) ([]*primitives.RANDAOSlashing, state.State)
	GetGovernanceVotes(s state.State) ([]*primitives.GovernanceVote, state.State)

	RemoveByBlock(b *primitives.Block, s state.State)
}

func NewPool

func NewPool(ch chain.Blockchain, h host.Host) Pool

type PoolType

type PoolType uint64
const (
	PoolTypeDeposit PoolType = iota
	PoolTypeExit
	PoolTypePartialExit
	PoolTypeGovernanceVote
	PoolTypeCoinProof
	PoolTypeVote
	PoolTypeTx
)

Jump to

Keyboard shortcuts

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