From 5cfe83d6d8fb2e20a94b80c4942e3acdbf961bf8 Mon Sep 17 00:00:00 2001 From: Aleksandr Karbyshev Date: Mon, 11 Sep 2023 22:29:37 +0200 Subject: [PATCH 1/2] fix: correct lower bound in client proposal vote check --- core/src/ledger/governance/storage/proposal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/ledger/governance/storage/proposal.rs b/core/src/ledger/governance/storage/proposal.rs index 865ee4e374..72a15b8631 100644 --- a/core/src/ledger/governance/storage/proposal.rs +++ b/core/src/ledger/governance/storage/proposal.rs @@ -226,7 +226,7 @@ impl StorageProposal { is_validator: bool, ) -> bool { if is_validator { - self.voting_start_epoch < self.voting_end_epoch + self.voting_start_epoch <= current_epoch && current_epoch * 3 <= self.voting_start_epoch + self.voting_end_epoch * 2 } else { From 83bbca123fe16308cfba18951017cdfcb6e83b61 Mon Sep 17 00:00:00 2001 From: Aleksandr Karbyshev Date: Mon, 11 Sep 2023 22:39:13 +0200 Subject: [PATCH 2/2] Add changelog --- .../unreleased/bug-fixes/1887-fix-client-can-be-voted-check.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .changelog/unreleased/bug-fixes/1887-fix-client-can-be-voted-check.md diff --git a/.changelog/unreleased/bug-fixes/1887-fix-client-can-be-voted-check.md b/.changelog/unreleased/bug-fixes/1887-fix-client-can-be-voted-check.md new file mode 100644 index 0000000000..2c841a054e --- /dev/null +++ b/.changelog/unreleased/bug-fixes/1887-fix-client-can-be-voted-check.md @@ -0,0 +1,2 @@ +- Fix lower bound in client proposal vote check + ([\#1887](https://github.com/anoma/namada/pull/1887)) \ No newline at end of file