Update comment

This commit is contained in:
Ryo Onodera
2020-09-19 23:52:46 +09:00
committed by Trent Nelson
parent b10fb46a4b
commit 1757cb85a1

View File

@ -1340,13 +1340,16 @@ impl AccountsDB {
} }
pub fn include_owner_in_hash(slot: Slot, operating_mode: OperatingMode) -> bool { pub fn include_owner_in_hash(slot: Slot, operating_mode: OperatingMode) -> bool {
// Account hashing will be updated to include owner at this slot on the devnet. // When ClusterType::Devnet (= OperatingMode::Development here) was moved to
// For testnet, it fully transitioned already thanks to eager rent collection, // stable release channel, it was done without hashing account.owner.
// so, this check is irrelevant, strictly speaking. // That's because devnet's slot was lower than 5_800_000 and the release
// channel's gating lacked ClusterType at the time...
//
// For testnet and mainnet-beta, they fully transitioned already thanks to
// eager rent collection. So, this check is irrelevant, strictly speaking.
match operating_mode { match operating_mode {
OperatingMode::Development => slot >= 5_800_000, OperatingMode::Development => slot >= 5_800_000,
OperatingMode::Stable => true, _ => true,
OperatingMode::Preview => true,
} }
} }