We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aab8457 commit c94785dCopy full SHA for c94785d
1 file changed
lwk_wollet/src/cache.rs
@@ -287,6 +287,7 @@ impl Cache {
287
}
288
289
pub fn tx(&self, txid: &Txid) -> Option<Transaction> {
290
+ // TODO: return result to handle the case where the store errors
291
let bytes = self.txs_store.get(&tx_key(txid)).ok()??;
292
elements::encode::deserialize(&bytes).ok()
293
@@ -315,6 +316,7 @@ impl Cache {
315
316
.map_err(Error::StoreError)?;
317
txids.insert(*txid);
318
319
+ // TODO: order keys
320
let txids = serde_json::to_vec(&txids.iter().map(|t| t.to_string()).collect::<Vec<_>>())
321
.map_err(Error::from)?;
322
self.txs_store
0 commit comments