LLFourn / bdk_core_staging

Staging area for bdk_core initial development
15 stars 12 forks source link

Invalidation logic changes #74

Closed evanlinjin closed 1 year ago

evanlinjin commented 1 year ago

Closes #68

When updating a SparseChain results in invalidating checkpoints, invalidated transactions are now moved to TxHeight::Unconfirmed, instead of being evicted.

The logic for updating a ChainGraph is changed so that we evict all transactions of the original chain that conflict with the update.

codecov-commenter commented 1 year ago

Codecov Report

Merging #74 (d750066) into master (4a7240e) will not change coverage. The diff coverage is n/a.

:exclamation: Current head d750066 differs from pull request most recent head 881c80a. Consider uploading reports for the commit 881c80a to get more accurate results

@@           Coverage Diff           @@
##           master      #74   +/-   ##
=======================================
  Coverage   49.00%   49.00%           
=======================================
  Files           9        9           
  Lines         602      602           
=======================================
  Hits          295      295           
  Misses        307      307           
Impacted Files Coverage Δ
bdk_core/src/chain_graph.rs 0.00% <ø> (ø)
bdk_core/src/sparse_chain.rs 78.57% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.