From 03b930515bc554396bc69d811be834d22978a1d3 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 11 Aug 2021 09:49:19 +0000 Subject: [PATCH] Handle 0-lamport account in index generation (#19041) (#19160) * Handle 0-lamport account in index generation * rename duplicate to dirty keys Co-authored-by: Carl Lin (cherry picked from commit 5a4979f25f38e0cfe651045464cd2f11efedc18b) Co-authored-by: sakridge --- runtime/src/accounts_index.rs | 37 ++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/runtime/src/accounts_index.rs b/runtime/src/accounts_index.rs index b7d08cb130..680577e47a 100644 --- a/runtime/src/accounts_index.rs +++ b/runtime/src/accounts_index.rs @@ -1388,39 +1388,44 @@ impl>(); - (duplicate_keys, insertion_time.load(Ordering::Relaxed)) + (dirty_pubkeys, insertion_time.load(Ordering::Relaxed)) } // Updates the given pubkey at the given slot with the new account information.