Skip to content

Commit c67f9d7

Browse files
committed
fix: Fix ChangeSet::last_evicted in read_tx_graph
This fixes a bug where we failed to update the `last_evicted` field of `tx_graph::ChangeSet` when reading the tx graph data.
1 parent 6c6f58c commit c67f9d7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/async_store.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ impl Store {
207207
changeset.txs.insert(Arc::new(tx));
208208
changeset.first_seen.insert(txid, first_seen.try_into()?);
209209
changeset.last_seen.insert(txid, last_seen.try_into()?);
210-
changeset.last_seen.insert(txid, last_evicted.try_into()?);
210+
changeset
211+
.last_evicted
212+
.insert(txid, last_evicted.try_into()?);
211213
}
212214

213215
let rows = sqlx::query("SELECT txid, vout, value, script FROM txout")

0 commit comments

Comments
 (0)