You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(l1): show healing in progress message at set intervals (#2462)
**Motivation**
We are not able to perform estimations on when healing will end, but we
should also not stay completely silent while healing takes place, as
this is not very user-friendly.
This PR aims to add messages to inform wether state and storage healing
are taking place, at the same pace as we show state sync and rebuild
progress. For state sync, pending paths will be shown. These can give an
insight on the progress, as the amount of paths will continuously
increase as we progress through the trie, but will start gradually
decreasing as we near the end of healing. For storages it is a slightly
different story as we don't have the full number of pending storages
available for showing so we only show the storages currently in the
queue.
<!-- Why does this pull request exist? What are its goals? -->
**Description**
* Periodically show amount of paths left during State Healing
* Periodically show storages in queue during Storage Healing
<!-- A clear and concise general description of the changes this PR
introduces -->
<!-- Link to issues: Resolves#111, Resolves#222 -->
Copy file name to clipboardExpand all lines: crates/networking/p2p/sync/state_healing.rs
+8-3
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
//! This process will stop once it has fixed all trie inconsistencies or when the pivot becomes stale, in which case it can be resumed on the next cycle
9
9
//! All healed accounts will also have their bytecodes and storages healed by the corresponding processes
10
10
11
-
use std::cmp::min;
11
+
use std::{cmp::min, time::Instant};
12
12
13
13
use ethrex_common::{
14
14
types::{AccountState,EMPTY_KECCACK_HASH},
@@ -18,13 +18,13 @@ use ethrex_rlp::decode::RLPDecode;
0 commit comments