From 4f5310542cd917317c5871772ae2979a0035e17a Mon Sep 17 00:00:00 2001 From: Murisi Tarusenga Date: Thu, 23 Mar 2023 08:38:58 +0200 Subject: [PATCH 1/2] Now load conversions from storage even for epoch 1. --- core/src/ledger/storage/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/ledger/storage/mod.rs b/core/src/ledger/storage/mod.rs index 0ddbc600c5..c9c4f95449 100644 --- a/core/src/ledger/storage/mod.rs +++ b/core/src/ledger/storage/mod.rs @@ -379,7 +379,7 @@ where self.next_epoch_min_start_height = next_epoch_min_start_height; self.next_epoch_min_start_time = next_epoch_min_start_time; self.address_gen = address_gen; - if self.last_epoch.0 > 1 { + if self.last_epoch.0 > 0 { // The derived conversions will be placed in MASP address space let masp_addr = masp(); let key_prefix: Key = masp_addr.to_db_key().into(); From 52b6d93ad2a1f6488cb9b234a6359f80a81bb9bd Mon Sep 17 00:00:00 2001 From: Murisi Tarusenga Date: Mon, 27 Mar 2023 10:31:01 +0200 Subject: [PATCH 2/2] Added record to changelog. --- .changelog/unreleased/bug-fixes/1244-conversion-loading-fix.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .changelog/unreleased/bug-fixes/1244-conversion-loading-fix.md diff --git a/.changelog/unreleased/bug-fixes/1244-conversion-loading-fix.md b/.changelog/unreleased/bug-fixes/1244-conversion-loading-fix.md new file mode 100644 index 0000000000..16594a471b --- /dev/null +++ b/.changelog/unreleased/bug-fixes/1244-conversion-loading-fix.md @@ -0,0 +1,2 @@ +- Now load conversions from storage even for epoch 1. + ([\#1244](https://github.com/anoma/namada/pull/1244)) \ No newline at end of file