Documentation ¶
Index ¶
- func NewPreVoteStreamingSession(chainId string) (PreVoteStreamingSessionId, PreVoteStreamingSessionKey, error)
- type PreVoteStreamingSessionId
- type PreVoteStreamingSessionKey
- type PreVoteStreamingSessionRegistrationResponse
- type StreamingLightValidator
- type StreamingLightValidators
- type StreamingNextBlockVotingInformation
- type StreamingValidatorVoteState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPreVoteStreamingSession ¶
func NewPreVoteStreamingSession(chainId string) (PreVoteStreamingSessionId, PreVoteStreamingSessionKey, error)
NewPreVoteStreamingSession generates a new session id and key pair with seed is given chain-id
Types ¶
type PreVoteStreamingSessionId ¶
type PreVoteStreamingSessionId string
func (PreVoteStreamingSessionId) ForChainId ¶
func (sid PreVoteStreamingSessionId) ForChainId(chainId string) bool
ForChainId returns true if the session id value is for the given chain id.
func (PreVoteStreamingSessionId) ValidateBasic ¶
func (sid PreVoteStreamingSessionId) ValidateBasic() error
ValidateBasic returns an error if the session id is invalid format.
type PreVoteStreamingSessionKey ¶
type PreVoteStreamingSessionKey string
func (PreVoteStreamingSessionKey) ValidateBasic ¶
func (sk PreVoteStreamingSessionKey) ValidateBasic() error
ValidateBasic returns an error if the session key is invalid format.
type PreVoteStreamingSessionRegistrationResponse ¶
type PreVoteStreamingSessionRegistrationResponse struct { SessionId PreVoteStreamingSessionId `json:"session-id"` SessionKey PreVoteStreamingSessionKey `json:"session-key"` }
type StreamingLightValidator ¶
type StreamingLightValidators ¶
type StreamingLightValidators []StreamingLightValidator
type StreamingNextBlockVotingInformation ¶
type StreamingNextBlockVotingInformation struct { HeightRoundStep string `json:"hrs"` Duration time.Duration `json:"d,omitempty"` PreVotedPercent float64 `json:"pv,omitempty"` PreCommitVotedPercent float64 `json:"pc,omitempty"` ValidatorVoteStates []StreamingValidatorVoteState `json:"v,omitempty"` }
Click to show internal directories.
Click to hide internal directories.