Documentation ¶
Index ¶
- Variables
- type ChainSentry
- func (cs *ChainSentry) GetLatestBlockData(requestedBlock int64) (latestBlock int64, hashesRes map[int64]interface{}, requestedBlockHash string, ...)
- func (cs *ChainSentry) GetLatestBlockHash() string
- func (cs *ChainSentry) GetLatestBlockNum() int64
- func (cs *ChainSentry) Init(ctx context.Context) error
- func (cs *ChainSentry) SetLatestBlockNum(value int64)
- func (cs *ChainSentry) Start(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorFailedToFetchLatestBlock = sdkerrors.New("Error FailedToFetchLatestBlock", 1001, "Failed to fetch latest block from node")
Functions ¶
This section is empty.
Types ¶
type ChainSentry ¶
type ChainSentry struct { ChainID string // contains filtered or unexported fields }
func NewChainSentry ¶
func NewChainSentry( clientCtx client.Context, cp chainproxy.ChainProxy, chainID string, ) *ChainSentry
func (*ChainSentry) GetLatestBlockData ¶
func (*ChainSentry) GetLatestBlockHash ¶
func (cs *ChainSentry) GetLatestBlockHash() string
func (*ChainSentry) GetLatestBlockNum ¶
func (cs *ChainSentry) GetLatestBlockNum() int64
func (*ChainSentry) SetLatestBlockNum ¶
func (cs *ChainSentry) SetLatestBlockNum(value int64)
Click to show internal directories.
Click to hide internal directories.