0.9.0
Changed
- Timestamping is now enabled by default even when the ASB is not run inside an interactive terminal.
- The
cancel
,refund
andpunish
subcommands in ASB and CLI are run with the--force
by default and the--force
option has been removed.
The force flag was used to ignore blockheight and protocol state checks.
Users can still restart a swap with these checks using theresume
subcommand. - Changed log level of the "Advancing state", "Establishing Connection through Tor proxy" and "Connection through Tor established" log message from tracing to debug in the CLI.
- ASB and CLI can migrate their data to sqlite to store swaps and related data.
This makes it easier to build applications on top of xmr-btc-swap by enabling developers to read swap information directly from the database.
This resolved an issue where users where unable to run concurrent processes, for example, users could not print the swap history if another ASB or CLI process was running.
The sqlite database filed is namedsqlite
and is found in the data directory.
You can print the data directory using theconfig
subcommand.
The schema can be found here here.
Database migration guide
Delete old data
The simplest way to migrate is to accept the loss of data and delete the old database.
- Find the location of the old database using the
config
subcommand. - Delete the database
- Run xmr-btc-swap
xmr-btc swap will create a new sqlite database and use that from now on.
Preserve old data
It is possible to migrate critical data from the old db to the sqlite but there are many pitfalls.
- Run xmr-btc-swap as you would normally
xmr-btc-swap will try and automatically migrate your existing data to the new database.
If the existing database contains swaps for very early releases, the migration will fail due to an incompatible schema. - Print out the swap history using the
history
subcommand. - Print out the swap history stored in the old database by also passing the
--sled
flag.
eg.swap-cli --sled history
- Compare the old and new history to see if you are happy with migration.
- If you are unhappy with the new history you can continue to use the old database by passing the
--sled flag
Added
- Added a
disable-timestamp
flag to the ASB that disables timestamps from logs. - A
config
subcommand that prints the current configuration including the data directory location.
This feature should alleviate difficulties users were having when finding where xmr-btc-swap was storing data. - Added
export-bitcoin-wallet
subcommand to the CLI and ASB, to print the internal bitcoin wallet descriptor.
This will allow users to transact and monitor using external wallets.
Removed
- The
bitcoin-target-block
argument from thebalance
subcommand on the CLI.
This argument did not affect how the balance was calculated and was pointless.