Add comment in SolanaGossipMananger::update_latest_full_snapshot_hash() (#31171)

This commit is contained in:
Brooks 2023-04-12 12:52:23 -04:00 committed by GitHub
parent 1761c0947b
commit 602297e29f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -97,6 +97,8 @@ impl SnapshotGossipManager {
fn update_latest_full_snapshot_hash(&mut self, full_snapshot_hash: (Slot, SnapshotHash)) {
self.latest_snapshot_hashes = Some(LatestSnapshotHashes {
full: full_snapshot_hash,
// If we've gotten a new full snapshot, we know there cannot be any
// incremental snapshots yet (based on this full snapshot).
incremental: None,
});
}