Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RtyAttNum = uint(5) RtyAtt = retry.Attempts(RtyAttNum) RtyDel = retry.Delay(time.Millisecond * 400) RtyErr = retry.LastErrorOnly(true) )
retries configuration for fetching light header
Functions ¶
This section is empty.
Types ¶
type TrustedHeaderFetcher ¶
type TrustedHeaderFetcher struct {
// contains filtered or unexported fields
}
TrustedHeaderFetcher able to get trusted headers for a given height Trusted headers are needed in Neutron along with proofs to verify that transactions are: - included in the block (inclusion proof) - successfully executed (delivery proof)
func NewTrustedHeaderFetcher ¶
func NewTrustedHeaderFetcher(neutronChain *relayer.Chain, targetChain *relayer.Chain, logger *zap.Logger) *TrustedHeaderFetcher
NewTrustedHeaderFetcher constructs a new TrustedHeaderFetcher
func (*TrustedHeaderFetcher) Fetch ¶ added in v0.2.0
func (thf *TrustedHeaderFetcher) Fetch(ctx context.Context, height uint64) (header *tmclient.Header, err error)
FetchTrustedHeaderForHeight returns the best suitable TrustedHeader for given height Arguments: `height` - remote chain block height X = transaction with such block height
Click to show internal directories.
Click to hide internal directories.