From 30a8fb86d0adb6bd7d768fe8a1deb476ab0e2c23 Mon Sep 17 00:00:00 2001 From: Ryo Onodera Date: Thu, 1 Jul 2021 20:20:14 +0900 Subject: [PATCH] Fix comment --- runtime/src/bank.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index d98cf4cb3b75f0..da5e5c53534d73 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -1520,14 +1520,14 @@ impl Bank { let old_account = if !self.rent_for_sysvars() { // This old behavior is being retired for simpler reasoning for the benefits of all. // Specifically, get_sysvar_account_with_fixed_root() doesn't work nicely with eager - // rent collection, which becomes applicable for sysvars after rent_for_sysvars - // activation. That's because get_sysvar_account_with_fixed_root() called by both + // rent collection, which becomes significant for sysvars after rent_for_sysvars + // activation. That's because get_sysvar_account_with_fixed_root() invocations by both // update_slot_history() and update_recent_blockhashes() ignores any updates - // done by eager rent collection in this slot. + // by eager rent collection in this slot. // Also, it turned out that get_sysvar_account_with_fixed_root()'s special // behavior (idempotent) isn't needed to begin with, because we're fairly certain that // we don't call new_from_parent() with same child slot multiple times in the - // production code... + // production code (except after proper handling of duplicate slot dumping)... self.get_sysvar_account_with_fixed_root(pubkey) } else { self.get_account_with_fixed_root(pubkey)