From fe4031f044401c963946285a062bf635a15ead2d Mon Sep 17 00:00:00 2001 From: Seun Lanlege Date: Wed, 28 Sep 2022 10:36:58 +0100 Subject: [PATCH 1/3] extend 03-connection proto with extra data for state machines that can't introspect their own consensus state --- proto/ibc/core/connection/v1/tx.proto | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proto/ibc/core/connection/v1/tx.proto b/proto/ibc/core/connection/v1/tx.proto index 94d676bbc38..91b8011b989 100644 --- a/proto/ibc/core/connection/v1/tx.proto +++ b/proto/ibc/core/connection/v1/tx.proto @@ -67,6 +67,8 @@ message MsgConnectionOpenTry { ibc.core.client.v1.Height consensus_height = 11 [(gogoproto.moretags) = "yaml:\"consensus_height\"", (gogoproto.nullable) = false]; string signer = 12; + // extra data for state machaines that can't introspect their own consensus state. + bytes host_consensus_state_info = 13; } // MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. @@ -94,6 +96,8 @@ message MsgConnectionOpenAck { ibc.core.client.v1.Height consensus_height = 9 [(gogoproto.moretags) = "yaml:\"consensus_height\"", (gogoproto.nullable) = false]; string signer = 10; + // extra data for state machaines that can't introspect their own consensus state. + bytes host_consensus_state_info = 11; } // MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. From 5eb10f03c883a1241b6c886dacced5a51b6fe547 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Date: Wed, 21 Dec 2022 02:53:19 +0100 Subject: [PATCH 2/3] update field name --- proto/ibc/core/connection/v1/tx.proto | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proto/ibc/core/connection/v1/tx.proto b/proto/ibc/core/connection/v1/tx.proto index 91b8011b989..8d1a0f3ec1d 100644 --- a/proto/ibc/core/connection/v1/tx.proto +++ b/proto/ibc/core/connection/v1/tx.proto @@ -67,8 +67,8 @@ message MsgConnectionOpenTry { ibc.core.client.v1.Height consensus_height = 11 [(gogoproto.moretags) = "yaml:\"consensus_height\"", (gogoproto.nullable) = false]; string signer = 12; - // extra data for state machaines that can't introspect their own consensus state. - bytes host_consensus_state_info = 13; + // optional proof data for host state machines that are unable to introspect their own consensus state + bytes host_consensus_state_proof = 13; } // MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. @@ -96,8 +96,8 @@ message MsgConnectionOpenAck { ibc.core.client.v1.Height consensus_height = 9 [(gogoproto.moretags) = "yaml:\"consensus_height\"", (gogoproto.nullable) = false]; string signer = 10; - // extra data for state machaines that can't introspect their own consensus state. - bytes host_consensus_state_info = 11; + // optional proof data for host state machines that are unable to introspect their own consensus state + bytes host_consensus_state_proof = 11; } // MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. From b038e0b1c26920f7ac77920ad1a4315a72250b1a Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Date: Wed, 21 Dec 2022 02:57:45 +0100 Subject: [PATCH 3/3] add changelog for #2419 --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0333484265a..0621a405486 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -88,6 +88,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ * (light-clients/06-solomachine) Moving `verifyMisbehaviour` function from update.go to misbehaviour_handle.go. * [\#2434](https://github.com/cosmos/ibc-go/pull/2478) Removed all `TypeMsg` constants * (modules/core/exported) [#1689] (https://github.com/cosmos/ibc-go/pull/2539) Removing `GetVersions` from `ConnectionI` interface. +* (core/02-connection) [#2419](https://github.com/cosmos/ibc-go/pull/2419) Add optional proof data to proto definitions of `MsgConnectionOpenTry` and `MsgConnectionOpenAck` for host state machines that are unable to introspect their own consensus state. ### Features