UnstoppableSwap / core

Bitcoin–Monero Cross-chain Atomic Swap (+ GUI)
GNU General Public License v3.0
19 stars 5 forks source link

[Bounty: 1 XMR] Upgrade bdk library #98

Open binarybaron opened 1 month ago

binarybaron commented 1 month ago

According to a core developer of the bdk library https://github.com/comit-network/xmr-btc-swap/issues/1772 can probably be fixed by upgrading to the latest version of the crate. They added a bunch of improvements to the syncing logic.

binarybaron commented 1 month ago

This is currently blocked by https://github.com/bitcoindevkit/bdk/issues/1606. We need a way to migrate the wallet data.

binarybaron commented 1 month ago

Turns out the issue is not really blocking our migration. We can just switch to 1.0.0-alpha version of bdk. The descriptors and keys are derived from our seed. The first sync post-upgrade will take a while but all data currently stored in the sled wallet database can be derived from the blockchain state. We won't loose any data aside from caches.

binarybaron commented 3 weeks ago

We use bounties to incentivize development and reward contributors. All issues available for a bounty have the Bounty 💸 label.

To receive the bounty of this issue, you agree to these conditions:

binarybaron commented 2 weeks ago

See https://github.com/bitcoindevkit/bdk/pull/1648/files