Documentation
¶
Index ¶
- Constants
- type COSMOS
- func (s COSMOS) BlockLoop(ctx context.Context) error
- func (s COSMOS) ConsensusStateLoop(ctx context.Context) error
- func (s COSMOS) Lock(key string) bool
- func (s COSMOS) PeerLoop(ctx context.Context) error
- func (s COSMOS) RpcPeers(ctx context.Context) error
- func (s COSMOS) Unlock(key string) bool
- func (s COSMOS) Validator(height int64, t time.Time) error
- type QOS
- func (s QOS) BlockLoop(ctx context.Context) error
- func (s QOS) ConsensusStateLoop(ctx context.Context) error
- func (s QOS) Lock(key string) bool
- func (s QOS) PeerLoop(ctx context.Context) error
- func (s QOS) RpcPeers(ctx context.Context) error
- func (s QOS) Unlock(key string) bool
- func (s QOS) Validator(height int64, t time.Time) error
- type QOSStakingValidator
- type QSC
- func (s QSC) BlockLoop(ctx context.Context) error
- func (s QSC) ConsensusStateLoop(ctx context.Context) error
- func (s QSC) Lock(key string) bool
- func (s QSC) PeerLoop(ctx context.Context) error
- func (s QSC) RpcPeers(ctx context.Context) error
- func (s QSC) Unlock(key string) bool
- func (s QSC) Validator(height int64, t time.Time) error
- type StakingValidator
- type Syncer
Constants ¶
View Source
const ( SyncConsensusStateDuration = time.Second * 2 SyncPeerDuration = time.Second * 30 SyncValidator = time.Second * 2 )
View Source
const ( SyncLocked = "1" SyncUnlocked = "0" )
View Source
const ( LockTypeBlock = "block" LockTypeConsensusState = "consensus_state" LockTypePeer = "peer" LockTypeValidator = "validator" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QOSStakingValidator ¶
type QOSStakingValidator struct { Commission struct { MaxChangeRate string `json:"max_change_rate"` MaxRate string `json:"max_rate"` Rate string `json:"rate"` UpdateTime string `json:"update_time"` } `json:"commission"` ConsensusPubkey string `json:"consensus_pubkey"` Description struct { Details string `json:"details"` Logo string `json:"logo"` Moniker string `json:"moniker"` Website string `json:"website"` } `json:"description"` Jailed bool `json:"jailed"` MinSelfDelegation string `json:"min_self_delegation"` OperatorAddress string `json:"operator_address"` Status int `json:"status"` Tokens string `json:"tokens"` UnbondingHeight string `json:"unbonding_height"` UnbondingTime string `json:"unbonding_time"` }
QOSStakingValidator struct
type StakingValidator ¶
type StakingValidator struct { Commission struct { MaxChangeRate string `json:"max_change_rate"` MaxRate string `json:"max_rate"` Rate string `json:"rate"` UpdateTime string `json:"update_time"` } `json:"commission"` ConsPubKey string `json:"consensus_pubkey"` Description struct { Details string `json:"details"` Identity string `json:"identity"` Moniker string `json:"moniker"` Website string `json:"website"` } `json:"description"` Jailed bool `json:"jailed"` MinSelfDelegation string `json:"min_self_delegation"` OperatorAddress string `json:"operator_address"` Status int `json:"status"` Tokens string `json:"tokens"` UnbondingHeight string `json:"unbonding_height"` UnbondingCompletionTime string `json:"unbonding_time"` }
Click to show internal directories.
Click to hide internal directories.