From 25de1c4b096951c1ceb361a97adf5a2fd873e177 Mon Sep 17 00:00:00 2001 From: Jim Fasarakis-Hilliard Date: Tue, 30 May 2023 12:04:32 +0300 Subject: [PATCH] chore: split orderings supported into own variable. (#3680) --- modules/core/03-connection/types/version.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/core/03-connection/types/version.go b/modules/core/03-connection/types/version.go index aaad7f6f745..c4310c4dfa9 100644 --- a/modules/core/03-connection/types/version.go +++ b/modules/core/03-connection/types/version.go @@ -11,14 +11,18 @@ import ( var ( // DefaultIBCVersion represents the latest supported version of IBC used - // in connection version negotiation. The current version supports only - // ORDERED and UNORDERED channels and requires at least one channel type + // in connection version negotiation. The current version supports the list + // of orderings defined in SupportedOrderings and requires at least one channel type // to be agreed upon. - DefaultIBCVersion = NewVersion(DefaultIBCVersionIdentifier, []string{"ORDER_ORDERED", "ORDER_UNORDERED"}) + DefaultIBCVersion = NewVersion(DefaultIBCVersionIdentifier, SupportedOrderings) // DefaultIBCVersionIdentifier is the IBC v1.0.0 protocol version identifier DefaultIBCVersionIdentifier = "1" + // SupportedOrderings is the list of orderings supported by IBC. The current + // version supports only ORDERED and UNORDERED channels. + SupportedOrderings = []string{"ORDER_ORDERED", "ORDER_UNORDERED"} + // AllowNilFeatureSet is a helper map to indicate if a specified version // identifier is allowed to have a nil feature set. Any versions supported, // but not included in the map default to not supporting nil feature sets.