bitcoindevkit / bdk

A modern, lightweight, descriptor-based wallet library written in Rust!
Other
867 stars 312 forks source link

Sqlite: check anchor to tx foreign key constraint #1712

Open notmandatory opened 1 week ago

notmandatory commented 1 week ago

"In the SQLite persistence the foreign key constraint from anchor to transactions is not checked. Adding an anchor for a non-existing transaction will prevent persisting the wallet."

notmandatory commented 3 days ago

Is there a scenario where were need to insert an Anchor without a corresponding transaction id?

ValuedMammal commented 1 day ago

We should also revisit #961 when trying to reproduce the SQL error.

notmandatory commented 21 hours ago

@oleonardolima is taking a look at this one. Or possibly just helping with testing @evanlinjin's PR #1736.