Skip to content

Commit

Permalink
wallet: revert cache update to cache re-initialization
Browse files Browse the repository at this point in the history
update procedure for esplora indexer is not yet implemented
  • Loading branch information
dr-orlovsky committed Feb 28, 2024
1 parent 54c39fb commit 8552e16
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,10 @@ impl<K, D: Descriptor<K>, L2: Layer2> Wallet<K, D, L2> {
pub fn set_name(&mut self, name: String) { self.data.name = name; }

pub fn update<B: Indexer>(&mut self, indexer: &B) -> MayError<usize, Vec<B::Error>> {
self.cache.update::<B, K, D, L2>(&self.descr, indexer)
WalletCache::with::<_, K, _, L2>(&self.descr, indexer).map(|cache| self.cache = cache);
// Not yet implemented:
// self.cache.update::<B, K, D, L2>(&self.descr, indexer)
MayError::ok(0)
}

pub fn to_deriver(&self) -> D
Expand Down

0 comments on commit 8552e16

Please sign in to comment.