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)
ApplyWithSnapshots(
state state.State,
block []*proto.Block,
snapshots []*proto.BlockSnapshot,
) (proto.Height, error)
ApplyMicroWithSnapshots(
state state.State,
block *proto.Block,
snapshots *proto.BlockSnapshot,
) (proto.Height, error)
}
type MicroBlockCache ¶ added in v0.6.0
type MicroBlockCache interface {
AddMicroBlock(blockID proto.BlockID, micro *proto.MicroBlock)
AddMicroBlockWithSnapshot(blockID proto.BlockID, micro *proto.MicroBlock, snapshot *proto.BlockSnapshot)
GetBlock(sig proto.BlockID) (*proto.MicroBlock, bool)
GetSnapshot(sig proto.BlockID) (*proto.BlockSnapshot, 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 peers.PeerManager
Scheduler types.Scheduler
BlocksApplier BlocksApplier
UtxPool types.UtxPool
EndorsementPool types.EndorsementPool
Scheme proto.Scheme
InvRequester types.InvRequester
Time types.Time
Wallet types.EmbeddedWallet
MicroBlockCache MicroBlockCache
InternalChannel chan messages.InternalMessage
MinPeersMining int
SkipMessageList *messages.SkipMessageList
}
Click to show internal directories.
Click to hide internal directories.