Documentation ¶
Index ¶
- func BlockAction(services services.Services, mess peer.ProtoMessage, fsm state_fsm.FSM) (state_fsm.FSM, state_fsm.Async, error)
- func BlockIdsAction(_ services.Services, mess peer.ProtoMessage, fsm state_fsm.FSM) (state_fsm.FSM, state_fsm.Async, error)
- func CreateActions() map[reflect.Type]Action
- func GetBlockAction(services services.Services, mess peer.ProtoMessage, fsm state_fsm.FSM) (state_fsm.FSM, state_fsm.Async, error)
- func GetBlockIdsAction(services services.Services, mess peer.ProtoMessage, fsm state_fsm.FSM) (state_fsm.FSM, state_fsm.Async, error)
- func GetPeersAction(services services.Services, mess peer.ProtoMessage, fsm state_fsm.FSM) (state_fsm.FSM, state_fsm.Async, error)
- func GetSignaturesAction(services services.Services, mess peer.ProtoMessage, fsm state_fsm.FSM) (state_fsm.FSM, state_fsm.Async, error)
- func MaybeEnableExtendedApi(state state.State, time types.Time) error
- func MicroBlockAction(services services.Services, mess peer.ProtoMessage, fsm state_fsm.FSM) (state_fsm.FSM, state_fsm.Async, error)
- func MicroBlockInvAction(services services.Services, mess peer.ProtoMessage, fsm state_fsm.FSM) (state_fsm.FSM, state_fsm.Async, error)
- func MicroBlockRequestAction(services services.Services, mess peer.ProtoMessage, fsm state_fsm.FSM) (state_fsm.FSM, state_fsm.Async, error)
- func PBBlockAction(_ services.Services, mess peer.ProtoMessage, fsm state_fsm.FSM) (state_fsm.FSM, state_fsm.Async, error)
- func PBMicroBlockAction(services services.Services, mess peer.ProtoMessage, fsm state_fsm.FSM) (state_fsm.FSM, state_fsm.Async, error)
- func PeersAction(services services.Services, mess peer.ProtoMessage, fsm state_fsm.FSM) (state_fsm.FSM, state_fsm.Async, error)
- func ScoreAction(_ services.Services, mess peer.ProtoMessage, fsm state_fsm.FSM) (state_fsm.FSM, state_fsm.Async, error)
- func SignaturesAction(services services.Services, mess peer.ProtoMessage, fsm state_fsm.FSM) (state_fsm.FSM, state_fsm.Async, error)
- func TransactionAction(s services.Services, mess peer.ProtoMessage, fsm state_fsm.FSM) (state_fsm.FSM, state_fsm.Async, error)
- type Action
- type Config
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockAction ¶ added in v0.6.0
func BlockIdsAction ¶ added in v0.6.0
func CreateActions ¶ added in v0.6.0
func GetBlockAction ¶ added in v0.6.0
func GetBlockIdsAction ¶ added in v0.6.0
func GetPeersAction ¶ added in v0.6.0
func GetSignaturesAction ¶ added in v0.6.0
func GetSignaturesAction(services services.Services, mess peer.ProtoMessage, fsm state_fsm.FSM) (state_fsm.FSM, state_fsm.Async, error)
peers asks us about our signatures
func MaybeEnableExtendedApi ¶ added in v0.5.0
func MicroBlockAction ¶ added in v0.6.0
func MicroBlockInvAction ¶ added in v0.6.0
func MicroBlockInvAction(services services.Services, mess peer.ProtoMessage, fsm state_fsm.FSM) (state_fsm.FSM, state_fsm.Async, error)
remote node mined microblock and sent us info about it.
func MicroBlockRequestAction ¶ added in v0.6.0
func MicroBlockRequestAction(services services.Services, mess peer.ProtoMessage, fsm state_fsm.FSM) (state_fsm.FSM, state_fsm.Async, error)
Our miner mined microblock, sent MicroblockInv to other nodes, they asked us about Microblock.
func PBBlockAction ¶ added in v0.6.0
func PBBlockAction(_ services.Services, mess peer.ProtoMessage, fsm state_fsm.FSM) (state_fsm.FSM, state_fsm.Async, error)
arrived protobuf block
func PBMicroBlockAction ¶ added in v0.6.0
func PeersAction ¶ added in v0.8.0
func ScoreAction ¶ added in v0.6.0
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) SpawnOutgoingConnection ¶
func (*Node) SpawnOutgoingConnections ¶
Directories ¶
Path | Synopsis |
---|---|
Package state_fsm is a generated GoMock package.
|
Package state_fsm is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.