refactor(persist): update file_store, sqlite, wallet to use bdk_chain::persist

Also update examples and remove bdk_persist crate.
This commit is contained in:
Steve Myers
2024-06-01 00:06:20 -05:00
parent 54b0c11cbe
commit 9e97ac0330
39 changed files with 542 additions and 1086 deletions

View File

@@ -3,6 +3,7 @@ use std::{
sync::Mutex,
};
use bdk_chain::persist::PersistBackend;
use bdk_chain::{
bitcoin::{constants::genesis_block, Address, Network, Txid},
collections::BTreeSet,
@@ -351,7 +352,6 @@ fn main() -> anyhow::Result<()> {
};
let mut db = db.lock().unwrap();
db.stage(db_changeset);
db.commit()?;
db.write_changes(&db_changeset)?;
Ok(())
}