Skip to content
Snippets Groups Projects
Commit 10c4747a authored by Éloïs's avatar Éloïs
Browse files

[ref] blockchain-dal: log dbs save

parent f3e24ef1
No related branches found
No related tags found
1 merge request!109Resolve "Fork resolution algorithm"
......@@ -174,6 +174,7 @@ impl BlocksV10DBs {
}
/// Save blocks databases in their respective files
pub fn save_dbs(&self) {
info!("BLOCKCHAIN-DAL: Save LocalBlockchainV10DB.");
self.blockchain_db
.save()
.expect("Fatal error : fail to save LocalBlockchainV10DB !");
......@@ -205,6 +206,7 @@ impl ForksDBs {
}
/// Save fork databases in their respective files
pub fn save_dbs(&self) {
info!("BLOCKCHAIN-DAL: Save ForksDBs.");
self.fork_tree_db
.save()
.expect("Fatal error : fail to save ForksTreeV10Datas !");
......@@ -244,6 +246,7 @@ impl WotsV10DBs {
}
/// Save wot databases from their respective files
pub fn save_dbs(&self) {
info!("BLOCKCHAIN-DAL: Save WotsV10DBs.");
self.wot_db
.save()
.expect("Fatal error : fail to save WotDB !");
......@@ -292,6 +295,7 @@ impl CurrencyV10DBs {
/// Save currency databases in their respective files
pub fn save_dbs(&self, tx: bool, du: bool) {
if tx {
info!("BLOCKCHAIN-DAL: Save CurrencyV10DBs.");
self.tx_db
.save()
.expect("Fatal error : fail to save LocalBlockchainV10DB !");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment