diff --git a/relayer/avail/light_client.go b/relayer/avail/light_client.go index 9458061..5eb8861 100644 --- a/relayer/avail/light_client.go +++ b/relayer/avail/light_client.go @@ -25,6 +25,7 @@ func NewLightClient(lightClientURL string, httpClient *http_client.Handler) *Lig LightClientURL: lightClientURL, } } + func (lc *LightClient) IsDataAvailable(data []byte, availBlockHeight int) (bool, error) { availBlock, err := lc.GetBlock(availBlockHeight) if err != nil { diff --git a/relayer/submit_data.go b/relayer/submit_data.go index 7c8e56a..22f9b51 100644 --- a/relayer/submit_data.go +++ b/relayer/submit_data.go @@ -8,9 +8,7 @@ import ( ) func (r *Relayer) SubmitDataToAvailClient(data []byte, blocks []int64) (avail.BlockMetaData, error) { - blockInfo, err := r.availDAClient.Submit(data) - if err != nil { r.logger.Error("Error while posting block(s) to Avail DA", "height_start", blocks[0], @@ -35,7 +33,6 @@ func (r *Relayer) SubmitDataToAvailClient(data []byte, blocks []int64) (avail.Bl // IsDataAvailable is to query the avail light client and check if the data is made available at the given height func (r *Relayer) IsDataAvailable(ctx sdk.Context, from, to, availHeight uint64) (bool, error) { - var blocks []int64 for i := from; i <= to; i++ { blocks = append(blocks, int64(i))