From 04a669cff30952d71961c973e75f532943414356 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 ++
2 files changed, 4 insertions(+)
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