diff --git a/go.mod b/go.mod index 661fdb1..786b1c3 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/ethereum/go-ethereum v1.12.0 github.com/gorilla/mux v1.8.0 github.com/grpc-ecosystem/grpc-gateway v1.16.0 - github.com/hyperledger-labs/yui-relayer v0.4.19 + github.com/hyperledger-labs/yui-relayer v0.4.21 github.com/oasisprotocol/oasis-core/go v0.2201.11 github.com/spf13/cobra v1.7.0 github.com/spf13/viper v1.16.0 diff --git a/go.sum b/go.sum index 7ce8702..69ed046 100644 --- a/go.sum +++ b/go.sum @@ -715,8 +715,8 @@ github.com/huandu/skiplist v1.2.0 h1:gox56QD77HzSC0w+Ws3MH3iie755GBJU1OER3h5VsYw github.com/huandu/skiplist v1.2.0/go.mod h1:7v3iFjLcSAzO4fN5B8dvebvo/qsfumiLiDXMrPiHF9w= github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= github.com/hydrogen18/memlistener v0.0.0-20200120041712-dcc25e7acd91/go.mod h1:qEIFzExnS6016fRpRfxrExeVn2gbClQA99gQhnIcdhE= -github.com/hyperledger-labs/yui-relayer v0.4.19 h1:I139zRG0228bRAyrhEV2Pgdwbv9Fx2vw3azNHhYqnsc= -github.com/hyperledger-labs/yui-relayer v0.4.19/go.mod h1:Hdc/ERCPDhbipri45/U6+/3kDH7EttIWGdql+Rd3tZg= +github.com/hyperledger-labs/yui-relayer v0.4.21 h1:37IewA8w5Ffsp6ySOfpLjjfwlQkeK/Mxvlc830NnJmo= +github.com/hyperledger-labs/yui-relayer v0.4.21/go.mod h1:Hdc/ERCPDhbipri45/U6+/3kDH7EttIWGdql+Rd3tZg= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/imkira/go-interpol v1.1.0/go.mod h1:z0h2/2T3XF8kyEPpRgJ3kmNv+C43p+I/CoI+jC3w2iA= diff --git a/relay/prover.go b/relay/prover.go index fca3786..611f32e 100644 --- a/relay/prover.go +++ b/relay/prover.go @@ -336,3 +336,9 @@ func (pr *Prover) ProveState(ctx core.QueryContext, path string, value []byte) ( } return cp, sc.Height, nil } + +// ProveHostConsensusState returns an existence proof of the consensus state at `height` +// This proof would be ignored in ibc-go, but it is required to `getSelfConsensusState` of ibc-solidity. +func (pr *Prover) ProveHostConsensusState(ctx core.QueryContext, height exported.Height, consensusState exported.ConsensusState) (proof []byte, err error) { + return pr.originProver.ProveHostConsensusState(ctx, height, consensusState) +}