Open binarybaron opened 2 years ago
@delta1 Any idea what could be causing this? Could it be related to the bdk update? It's preventing me from working on the GUI :/
Hey @binarybaron I do suspect it's the bdk change because of this error message:
invalid type: byte array, expected a script
Because the bump in rust-bitcoin that accompanied this changed the type of bitcoin witness scripts
Can you please try with swap/asb compiled from the same commit and specify what it is? I will try reproduce and get on fixing it.
Can you please try with swap/asb compiled from the same commit and specify what it is? I will try reproduce and get on fixing it.
Will do. I'm compiling the new version on my server at this very moment.
If it's the reason this is happening, would you be okay with just reversing the upgrade from bdk 0.16 to 0.23? If there aren't any critical security fixes in the upgrade and if there is no need for the new features, I don't see a reason to upgrade if breaks backwards compatability.
would you be okay with just reversing the upgrade from bdk 0.16 to 0.23
Not really, I'd much rather make a new release for 0.12.
What changes do you have to 0.11? Can they be upstreamed here? Then we can do a backport release of that into 0.11.1 for you.
If there aren't any critical security fixes in the upgrade
I can't answer without an investigation and is a very good reason to stay current with their releases
I'll take a look at making a 0.11.1 release with everything except the bdk changes
would you be okay with just reversing the upgrade from bdk 0.16 to 0.23
Not really, I'd much rather make a new release for 0.12.
What changes do you have to 0.11? Can they be upstreamed here? Then we can do a backport release of that into 0.11.1 for you.
If there aren't any critical security fixes in the upgrade
I can't answer without an investigation and is a very good reason to stay current with their releases
I understand your point but I think we have to consider the costs-benefits. The upgrade changes the internal data structures therefore a database created by the old version is not compatible with the latest version. We are essentially forcing users to delete their whole database just to be able to use the cli again.
The GUI also uses the tx_lock
saved in the database to display amounts, fees etc. The upgrade completely breaks the "History" tab (page where you can look at past swaps).
I hear you, but what I’m saying is that we can make a release that excludes it - using the master branch can never guarantee non-breaking changes.
@binarybaron here's a branch with everything from that bdk upgrade removed https://github.com/comit-network/xmr-btc-swap/tree/0.11.x
Want to give it a shot? I'm waiting on CI then I'll do a release from that branch of 0.11.1
@binarybaron here's a branch with everything from that bdk upgrade removed https://github.com/comit-network/xmr-btc-swap/tree/0.11.x
Want to give it a shot? I'm waiting on CI then I'll do a release from that branch of
0.11.1
@binarybaron please try this branch - there's a CI/test failure that I'm only going to fix if this works for you
Sorry, forgot to reply. Running asb on https://github.com/comit-network/xmr-btc-swap/releases/tag/0.11.0 and CLI on the branch you provided fixes the issue
No worries, happy to hear that. Let me take a quick look at this broken test and make a release for you.
if this is ready and tests passed can we close this?
Well, it's not an issue with 0.11.x but is likely to remain incompatible with master/the next major release 0.12
Actually want to keep this open so I can remember to try fix it
perfect no problem
Describe the bug Initiating a swap fails. This might be due to the asb and cli using different versions of the software. CLI uses latest preview release. ASB is self-compiled and a few weeks old. I'll compile to use the latest asb version and try again.
Debug logs CLI:
ASB:
Lost/trapped Funds No
Platform (please complete the following information):