From efe8cb11feea724168cba720c31a2ea455856485 Mon Sep 17 00:00:00 2001
From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com>
Date: Fri, 19 Jan 2024 19:25:23 +0100
Subject: [PATCH] fix!: Validation of SlashAcks fails due to marshaling to
Bech32 (backport #1570) (#1577)
fix!: Validation of SlashAcks fails due to marshaling to Bech32 (#1570)
* add different Bech32Prefix for consumer and provider
* separate app encoding and params
* remove ConsumerValPubKey from ValidatorConfig
* update addresses in tests
* make SlashAcks consistent across chains
* add comments for clarity
* Regenerate traces
* Fix argument order
* set bech32prefix for provider to cosmos
* add changelog entries
* add consumer-double-downtime e2e test
* update nightly-e2e workflow
* fix typo
* add consumer-double-downtime to testConfigs
* remove changes on provider
* skip invalid SlashAcks
* seal the config
* clear the outstanding downtime flag for new vals
* add info on upgrading to v4.0.0
* fix upgrade handler
* fix changeover e2e test
* Update tests/e2e/config.go
Co-authored-by: Philip Offtermatt <57488781+p-offtermatt@users.noreply.github.com>
* Update tests/e2e/config.go
Co-authored-by: Philip Offtermatt <57488781+p-offtermatt@users.noreply.github.com>
* add AccountPrefix to ChainConfig
* fix docstrings
* update AccountAddressPrefix in app.go
* fix consumer-misb e2e test
---------
Co-authored-by: Philip Offtermatt
Co-authored-by: Simon Noetzlin
Co-authored-by: Philip Offtermatt <57488781+p-offtermatt@users.noreply.github.com>
(cherry picked from commit 86046926502f7b0ba795bebcdd1fdc97ac776573)
Co-authored-by: Marius Poke
---
.changelog/unreleased/state-breaking/1570-slashack-bech32.md | 2 ++
.changelog/v4.0.0/bug-fixes/1570-slashack-bech32.md | 2 ++
UPGRADING.md | 4 ++--
3 files changed, 6 insertions(+), 2 deletions(-)
create mode 100644 .changelog/unreleased/state-breaking/1570-slashack-bech32.md
create mode 100644 .changelog/v4.0.0/bug-fixes/1570-slashack-bech32.md
diff --git a/.changelog/unreleased/state-breaking/1570-slashack-bech32.md b/.changelog/unreleased/state-breaking/1570-slashack-bech32.md
new file mode 100644
index 0000000000..a0e9fe9262
--- /dev/null
+++ b/.changelog/unreleased/state-breaking/1570-slashack-bech32.md
@@ -0,0 +1,2 @@
+- Fix the validation of VSCPackets to not fail due to marshaling to string using Bech32.
+ ([\#1570](https://github.com/cosmos/interchain-security/pull/1570))
\ No newline at end of file
diff --git a/.changelog/v4.0.0/bug-fixes/1570-slashack-bech32.md b/.changelog/v4.0.0/bug-fixes/1570-slashack-bech32.md
new file mode 100644
index 0000000000..a0e9fe9262
--- /dev/null
+++ b/.changelog/v4.0.0/bug-fixes/1570-slashack-bech32.md
@@ -0,0 +1,2 @@
+- Fix the validation of VSCPackets to not fail due to marshaling to string using Bech32.
+ ([\#1570](https://github.com/cosmos/interchain-security/pull/1570))
\ No newline at end of file
diff --git a/UPGRADING.md b/UPGRADING.md
index 1267d3ac66..e82a799a6b 100644
--- a/UPGRADING.md
+++ b/UPGRADING.md
@@ -30,7 +30,7 @@ func migrateICSOutstandingDowntime(ctx sdk.Context, keepers *upgrades.UpgradeKee
keepers.ConsumerKeeper.DeleteOutstandingDowntime(ctx, consAddr)
}
- ctx.Logger().Info("Finished ICS outstanding downtime")
+ ctx.Logger().Info("Finished ICS oustanding downtime")
return nil
}
@@ -118,4 +118,4 @@ Upgrading a provider from `v1.1.0-multiden` to `v2.0.0` will require state migra
### Consumer
-Upgrading a consumer from `v1.2.0-multiden` to `v2.0.0` will NOT require state migrations.
\ No newline at end of file
+Upgrading a consumer from `v1.2.0-multiden` to `v2.0.0` will NOT require state migrations.