Documentation ¶
Index ¶
- Constants
- type BlockMsg
- type ConfirmMsg
- type ConsensusStatus
- type FailedWithdrawTx
- func (msg *FailedWithdrawTx) CMD() string
- func (msg *FailedWithdrawTx) Deserialize(r io.Reader) error
- func (msg *FailedWithdrawTx) GetHash() string
- func (msg *FailedWithdrawTx) GetSignature() string
- func (msg *FailedWithdrawTx) MaxLength() uint32
- func (msg *FailedWithdrawTx) Serialize(w io.Writer) error
- type RequestConsensus
- type ResponseConsensus
- type SmallCroTx
Constants ¶
View Source
const ( CmdConfirm = "confirm" CmdSmallCroTx = "smallCroTx" CmdFailedWithdrawTx = "failedWTx" )
View Source
const DefaultResponseConsensusMessageDataSize = 8000000 * 10
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockMsg ¶
type BlockMsg struct {
// contains filtered or unexported fields
}
func NewBlockMsg ¶
type ConfirmMsg ¶
func NewConfirmMsg ¶
func NewConfirmMsg(confirm *payload.Confirm, height uint64) *ConfirmMsg
func (*ConfirmMsg) CMD ¶
func (msg *ConfirmMsg) CMD() string
func (*ConfirmMsg) Deserialize ¶
func (msg *ConfirmMsg) Deserialize(r io.Reader) error
func (*ConfirmMsg) MaxLength ¶
func (msg *ConfirmMsg) MaxLength() uint32
type ConsensusStatus ¶ added in v0.1.4
type ConsensusStatus struct { ConsensusStatus uint32 ViewOffset uint32 ViewStartTime time.Time AcceptVotes []payload.DPOSProposalVote RejectedVotes []payload.DPOSProposalVote PendingProposals []payload.DPOSProposal PendingVotes []payload.DPOSProposalVote WorkingHeight uint64 }
func (*ConsensusStatus) Deserialize ¶ added in v0.1.4
func (s *ConsensusStatus) Deserialize(r io.Reader) error
type FailedWithdrawTx ¶ added in v0.1.4
type FailedWithdrawTx struct {
// contains filtered or unexported fields
}
func NewFailedWithdrawTx ¶ added in v0.1.4
func NewFailedWithdrawTx(sig string, hash string) *FailedWithdrawTx
func (*FailedWithdrawTx) CMD ¶ added in v0.1.4
func (msg *FailedWithdrawTx) CMD() string
func (*FailedWithdrawTx) Deserialize ¶ added in v0.1.4
func (msg *FailedWithdrawTx) Deserialize(r io.Reader) error
func (*FailedWithdrawTx) GetHash ¶ added in v0.1.4
func (msg *FailedWithdrawTx) GetHash() string
func (*FailedWithdrawTx) GetSignature ¶ added in v0.1.4
func (msg *FailedWithdrawTx) GetSignature() string
func (*FailedWithdrawTx) MaxLength ¶ added in v0.1.4
func (msg *FailedWithdrawTx) MaxLength() uint32
type RequestConsensus ¶
type RequestConsensus struct {
Height uint64
}
func (*RequestConsensus) CMD ¶
func (msg *RequestConsensus) CMD() string
func (*RequestConsensus) Deserialize ¶
func (msg *RequestConsensus) Deserialize(r io.Reader) error
func (*RequestConsensus) MaxLength ¶
func (msg *RequestConsensus) MaxLength() uint32
type ResponseConsensus ¶ added in v0.1.4
type ResponseConsensus struct {
Consensus ConsensusStatus
}
func (*ResponseConsensus) CMD ¶ added in v0.1.4
func (msg *ResponseConsensus) CMD() string
func (*ResponseConsensus) Deserialize ¶ added in v0.1.4
func (msg *ResponseConsensus) Deserialize(r io.Reader) error
func (*ResponseConsensus) MaxLength ¶ added in v0.1.4
func (msg *ResponseConsensus) MaxLength() uint32
type SmallCroTx ¶ added in v0.1.4
type SmallCroTx struct {
// contains filtered or unexported fields
}
func NewSmallCroTx ¶ added in v0.1.4
func NewSmallCroTx(sig string, rawtx string) *SmallCroTx
func (*SmallCroTx) CMD ¶ added in v0.1.4
func (msg *SmallCroTx) CMD() string
func (*SmallCroTx) Deserialize ¶ added in v0.1.4
func (msg *SmallCroTx) Deserialize(r io.Reader) error
func (*SmallCroTx) GetRawTx ¶ added in v0.1.4
func (msg *SmallCroTx) GetRawTx() string
func (*SmallCroTx) GetSignature ¶ added in v0.1.4
func (msg *SmallCroTx) GetSignature() string
func (*SmallCroTx) MaxLength ¶ added in v0.1.4
func (msg *SmallCroTx) MaxLength() uint32
Click to show internal directories.
Click to hide internal directories.