From c5e62535d5eca1e4e66f3f71eeec8c088eea60f4 Mon Sep 17 00:00:00 2001 From: Davidson Souza Date: Thu, 28 Nov 2024 20:45:31 -0300 Subject: [PATCH] flush more often on ibd If we die (or get stopped) while on IBD, we might lose all our work. This commit tries to fix this by flushing more often during IBD, so our work gets persisted. --- crates/floresta-chain/src/pruned_utreexo/chain_state.rs | 2 +- crates/floresta-wire/src/p2p_wire/chain_selector.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/floresta-chain/src/pruned_utreexo/chain_state.rs b/crates/floresta-chain/src/pruned_utreexo/chain_state.rs index 3f2283aa..d0c6ce72 100644 --- a/crates/floresta-chain/src/pruned_utreexo/chain_state.rs +++ b/crates/floresta-chain/src/pruned_utreexo/chain_state.rs @@ -1102,7 +1102,7 @@ impl UpdatableChainstate for ChainState