Skip to content

Commit

Permalink
chore: show smt is loading (#6313)
Browse files Browse the repository at this point in the history
Description
---
Show smt is loading into memory

Motivation and Context
---
atm when you start the node, it looks like it crahsed or hanged. 

How Has This Been Tested?
---
manual
  • Loading branch information
SWvheerden committed Apr 30, 2024
1 parent 3e4bb70 commit d70404f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base_layer/core/src/chain_storage/blockchain_database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ where B: BlockchainBackend
} else {
// lets load the smt into memory
let mut smt = blockchain_db.smt_write_access()?;
warn!(target: LOG_TARGET, "Loading SMT into memory from stored db");
*smt = blockchain_db.db_write_access()?.calculate_tip_smt()?;
warn!(target: LOG_TARGET, "Finished loading SMT into memory from stored db");
}
if config.cleanup_orphans_at_startup {
match blockchain_db.cleanup_all_orphans() {
Expand Down

0 comments on commit d70404f

Please sign in to comment.