|
|
|
@ -172,10 +172,10 @@ type Tree struct { |
|
|
|
|
// 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.
|
|
|
|
|
// The repair happens on a background thread.
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// 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:
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// - 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.
|
|
|
|
|
// - otherwise, the entire snapshot is considered invalid and will be recreated on
|
|
|
|
|