Merge pull request #23371 from karalabe/gofmt

core/state/snapshot: gofmt
This commit is contained in:
Péter Szilágyi 2021-08-10 16:59:25 +03:00 committed by GitHub
commit 5d0ab07343
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,10 +172,10 @@ type Tree struct {
// If the snapshot is missing or the disk layer is broken, the snapshot will be // If the snapshot is missing or the disk layer is broken, the snapshot will be
// reconstructed using both the existing data and the state trie. // reconstructed using both the existing data and the state trie.
// The repair happens on a background thread. // The repair happens on a background thread.
// //
// If the memory layers in the journal do not match the disk layer (e.g. there is // If the memory layers in the journal do not match the disk layer (e.g. there is
// a gap) or the journal is missing, there are two repair cases: // a gap) or the journal is missing, there are two repair cases:
// //
// - if the 'recovery' parameter is true, all memory diff-layers will be discarded. // - if the 'recovery' parameter is true, all memory diff-layers will be discarded.
// This case happens when the snapshot is 'ahead' of the state trie. // This case happens when the snapshot is 'ahead' of the state trie.
// - otherwise, the entire snapshot is considered invalid and will be recreated on // - otherwise, the entire snapshot is considered invalid and will be recreated on