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

[fix] blockchain: forgot to save Forks DBs

parent 861921b9
Branches
Tags
1 merge request!109Resolve "Fork resolution algorithm"
......@@ -94,6 +94,7 @@ pub fn receive_blocks(bc: &mut BlockchainModule, blocks: Vec<Block>) {
// Save databases
if save_blocks_dbs {
bc.blocks_databases.save_dbs();
bc.forks_dbs.save_dbs();
}
if save_wots_dbs {
bc.wot_databases.save_dbs();
......
......@@ -121,6 +121,7 @@ pub fn apply_rollback(bc: &mut BlockchainModule, new_bc_branch: Vec<Blockstamp>)
// save dbs
bc.blocks_databases.save_dbs();
bc.forks_dbs.save_dbs();
bc.wot_databases.save_dbs();
bc.currency_databases.save_dbs(true, true);
// Send events stackUpValidBlock
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment