fix(wallet): apply loaded changeset to indexed_graph

This commit is contained in:
thunderbiscuit
2023-12-19 16:05:01 -05:00
parent b5612f269a
commit f4863c6314
2 changed files with 16 additions and 7 deletions

View File

@@ -517,7 +517,9 @@ impl<D> Wallet<D> {
create_signers(&mut index, &secp, descriptor, change_descriptor, network)
.map_err(LoadError::Descriptor)?;
let indexed_graph = IndexedTxGraph::new(index);
let mut indexed_graph = IndexedTxGraph::new(index);
indexed_graph.apply_changeset(changeset.indexed_tx_graph);
let persist = Persist::new(db);
Ok(Wallet {