Documentation
¶
Index ¶
- Constants
- type AsynchronousCommonSubsetMsg
- type BlockMsg
- type DismissChainMsg
- type GetBlockMsg
- type InclusionStateMsg
- type MissingRequestIDsMsg
- type MissingRequestMsg
- type OffLedgerRequestMsg
- type RequestAcKMsg
- type SignedResultAckMsg
- type SignedResultMsg
- type StateCandidateMsg
- type StateMsg
- type StateTransitionMsg
- type TimerTick
- type VMResultMsg
Constants ¶
const ( MsgGetBlock = 1 + peering.FirstUserMsgCode + iota MsgBlock MsgSignedResult MsgSignedResultAck MsgOffLedgerRequest MsgMissingRequestIDs MsgMissingRequest MsgRequestAck )
Message types for the committee communications.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsynchronousCommonSubsetMsg ¶
AsynchronousCommonSubsetMsg
type BlockMsg ¶
BlockMsg StateManager in response to GetBlockMsg sends block data to the querying node's StateManager
type DismissChainMsg ¶
type DismissChainMsg struct {
Reason string
}
DismissChainMsg sent by component to the chain core in case of major setback
type GetBlockMsg ¶
GetBlockMsg StateManager queries specific block data from another peer (access node)
type InclusionStateMsg ¶
type InclusionStateMsg struct {
TxID ledgerstate.TransactionID
State ledgerstate.InclusionState
}
InclusionStateMsg txstream plugin sends inclusions state of the transaction to ConsensusOld
type MissingRequestIDsMsg ¶
func MissingRequestIDsMsgFromBytes ¶
func MissingRequestIDsMsgFromBytes(data []byte) (*MissingRequestIDsMsg, error)
func NewMissingRequestIDsMsg ¶
func NewMissingRequestIDsMsg(missingIDs []iscp.RequestID) *MissingRequestIDsMsg
func (*MissingRequestIDsMsg) Bytes ¶
func (msg *MissingRequestIDsMsg) Bytes() []byte
type MissingRequestMsg ¶
func MissingRequestMsgFromBytes ¶
func MissingRequestMsgFromBytes(data []byte) (*MissingRequestMsg, error)
func NewMissingRequestMsg ¶
func NewMissingRequestMsg(req iscp.Request) *MissingRequestMsg
func (*MissingRequestMsg) Bytes ¶
func (msg *MissingRequestMsg) Bytes() []byte
type OffLedgerRequestMsg ¶
func NewOffLedgerRequestMsg ¶
func NewOffLedgerRequestMsg(chainID *iscp.ChainID, req *request.OffLedger) *OffLedgerRequestMsg
func OffLedgerRequestMsgFromBytes ¶
func OffLedgerRequestMsgFromBytes(data []byte) (*OffLedgerRequestMsg, error)
func (*OffLedgerRequestMsg) Bytes ¶
func (msg *OffLedgerRequestMsg) Bytes() []byte
type RequestAcKMsg ¶
func NewRequestAckMsg ¶
func NewRequestAckMsg(reqID iscp.RequestID) *RequestAcKMsg
func RequestAckMsgFromBytes ¶
func RequestAckMsgFromBytes(buf []byte) (RequestAcKMsg, error)
func (*RequestAcKMsg) Bytes ¶
func (msg *RequestAcKMsg) Bytes() []byte
type SignedResultAckMsg ¶
type SignedResultAckMsg struct {
SenderIndex uint16
ChainInputID ledgerstate.OutputID
EssenceHash hashing.HashValue
}
type SignedResultMsg ¶
type SignedResultMsg struct {
SenderIndex uint16
ChainInputID ledgerstate.OutputID
EssenceHash hashing.HashValue
}
type StateCandidateMsg ¶
type StateCandidateMsg struct {
State state.VirtualStateAccess
ApprovingOutputID ledgerstate.OutputID
}
StateCandidateMsg Consensus sends the finalized next state to StateManager
type StateMsg ¶
type StateMsg struct {
ChainOutput *ledgerstate.AliasOutput
Timestamp time.Time
}
StateMsg txstream plugin sends the only existing AliasOutput in the chain's address to StateManager
type StateTransitionMsg ¶
type StateTransitionMsg struct {
// new variable state
State state.VirtualStateAccess
// corresponding state transaction
StateOutput *ledgerstate.AliasOutput
//
StateTimestamp time.Time
}
StateTransitionMsg Notifies chain about changed state
type VMResultMsg ¶
VMResultMsg Consensus -> Consensus. VM sends result of async task started by Consensus to itself