services

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlocksApplier added in v0.6.0

type BlocksApplier interface {
	BlockExists(state state.State, block *proto.Block) (bool, error)
	Apply(state state.State, block []*proto.Block) (proto.Height, error)
	ApplyMicro(state state.State, block *proto.Block) (proto.Height, error)
}

type MicroBlockCache added in v0.6.0

type MicroBlockCache interface {
	Add(blockID proto.BlockID, micro *proto.MicroBlock)
	Get(proto.BlockID) (*proto.MicroBlock, bool)
}

type MicroBlockInvCache added in v0.6.0

type MicroBlockInvCache interface {
	Add(blockID proto.BlockID, micro *proto.MicroBlockInv)
	Get(proto.BlockID) (*proto.MicroBlockInv, bool)
}

type Services

type Services struct {
	NodeName        string
	State           state.State
	Peers           peer_manager.PeerManager
	Scheduler       types.Scheduler
	BlocksApplier   BlocksApplier
	UtxPool         types.UtxPool
	Scheme          proto.Scheme
	InvRequester    types.InvRequester
	LoggableRunner  runner.LogRunner
	Time            types.Time
	Wallet          types.EmbeddedWallet
	MicroBlockCache MicroBlockCache
	InternalChannel chan messages.InternalMessage
	MinPeersMining  int
}

Jump to

Keyboard shortcuts

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