Skip to content

Commit c94785d

Browse files
committed
wollet: txs store: add todos
1 parent aab8457 commit c94785d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lwk_wollet/src/cache.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ impl Cache {
287287
}
288288

289289
pub fn tx(&self, txid: &Txid) -> Option<Transaction> {
290+
// TODO: return result to handle the case where the store errors
290291
let bytes = self.txs_store.get(&tx_key(txid)).ok()??;
291292
elements::encode::deserialize(&bytes).ok()
292293
}
@@ -315,6 +316,7 @@ impl Cache {
315316
.map_err(Error::StoreError)?;
316317
txids.insert(*txid);
317318
}
319+
// TODO: order keys
318320
let txids = serde_json::to_vec(&txids.iter().map(|t| t.to_string()).collect::<Vec<_>>())
319321
.map_err(Error::from)?;
320322
self.txs_store

0 commit comments

Comments
 (0)