lbryio / lbcd

An alternative full node implementation of LBRY's blockchain written in Go (golang)
https://lbry.com/
ISC License
38 stars 25 forks source link

Display progress during RamTrie rebuilding at (re)startup #50

Closed roylee17 closed 2 years ago

roylee17 commented 2 years ago

lbcd rebuilds RamTrie at the startup, and this can take few minutes to half hour depend on the machine. During the this time, the only visual changes from the log is periodic resource consumption report:

2022-06-03 20:04:28.330 [INF] MAIN: RAM: using 1.9 GB with 27.1 available, DISK: using 19.1 GB with 281.9 available
2022-06-03 20:04:38.340 [INF] MAIN: RAM: using 2.1 GB with 26.9 available, DISK: using 19.3 GB with 281.7 available
...

It would be good to show the progress even an estimate one.