Commit Graph

86 Commits (490c1d2ec133a899d0f0f11987c8abb9caa3f56c)

Author SHA1 Message Date
COMIT Botty McBotface 66c16151c2 Prepare release 0.10.0 3 years ago
rishflab d1f6739e59 Remove support for the sled database 3 years ago
rishflab a42484f04d Use upstream libp2p instead of our fork
The rendezvous protocol has been merged into upstream. We no longer need
 to depend on our fork. The ASB no longer works as a rendezvous point.
3 years ago
COMIT Botty McBotface 6f47964e8d Prepare release 0.9.0 3 years ago
bors[bot] 90bf702b99
Merge #805
805: Remove unused command line argument from the balance command r=rishflab a=rishflab

The target block is irrelevant when calculating the balance.

Closes #793 

Co-authored-by: rishflab <rishflab@hotmail.com>
3 years ago
rishflab 214730743f Remove unused command line argument from the balance command
The target block is irrelevant when calculating the balance.
3 years ago
rishflab e42812ba37 Add subcommand to print internal bitcoin wallet descriptor
Example:

 cargo run --package swap --bin swap -- export-bitcoin-wallet

{"descriptor":"wpkh(xprv9s21ZrQH143K2q85eUf2ppCtti2Zar6aDCW5dCC5DG9VvutJ3cpe3Qf9wZpQeraNf9JEuGem1RyJZQMEWCN2DpWyL5WbsvmSW6wbL7Jq53H/84'/0'/0'/0/*)","blockheight":0,"label":"cli-bitcoin"}
3 years ago
rishflab 394adb0a4f Add subcommand to print config
This subcommand has been introduced to make it easy for users to find
the location of the deprecated sled database in case they wish to delete
it. This feature should also resolve difficulties users were facing when
 trying to find where xmr-btc-swap was storing their data.
3 years ago
rishflab 05a28dc37a Add --sled flag to use deprecated sled db 3 years ago
bors[bot] e860c051d3
Merge #769
769: Change message log level to debug to allow enabling through flag r=rishflab a=rishflab

We do not have a way to enable tracing through a command line
argument so it did not make sense to have these messages set to
trace. Ideally a trace flag should be added but it is not that
straightforward with structopt. We could add a --log-level arg
that allows you select a log level but this is verbose.

Closes #759


Co-authored-by: rishflab <rishflab@hotmail.com>
3 years ago
rishflab 3ba1ed2bcb Change message log level to debug to allow enabling through flag
We do not have a way to enable tracing through a command line
argument so it did not make sense to have these messages set to
trace. Ideally a trace flag should be added but it is not that
straightforward with structopt. We could add a --log-level arg
that allows you select a log level but this is verbose.
3 years ago
rishflab ee6524a75f Timestamp logs by default on the ASB
Disable timestamps using the command line flag
3 years ago
rishflab 679b155db1 Enable log timestamps using explicit command line flag
Previously logs were only timestamped when the ASB was run in an
interactive terminal or if the logs were output as JSON. JSON logs and
ASB output in an interactive terminal are no longer timestamped by
default.
3 years ago
rishflab f511ff093c Make --force the default behaviour for manual recovery
Remove the force flag. There is a resume command that tries to
gracefully restarts the protocol and tries to execute the happy path.
Remove e2e tests which test the --force flag.
3 years ago
COMIT Botty McBotface 4ff74a3940 Prepare release 0.8.3 3 years ago
rishflab 2d64a8d356
Revert "Release version 0.8.3" 3 years ago
rishflab 27b1e60f0b
Revert "Release version 0.8.3" 3 years ago
COMIT Botty McBotface deadb7d4c8 Prepare release 0.8.3 3 years ago
COMIT Botty McBotface 2a4ffaeacb Prepare release 0.8.3 3 years ago
bors[bot] 1f371ecfee
Merge #724
724: Handle errors when waiting for subscriptions r=rishflab a=rishflab

We were not thorough enough in PR #705 and there were some remaining
unhandled errors.

Co-authored-by: rishflab <rishflab@hotmail.com>
3 years ago
rishflab ce58b8b333 Handle errors when waiting for subscriptions
We were not thorough enough in PR #705 and there were some remaining
unhandled errors.

Co-authored-by: Daniel Karzel <daniel@comit.network>
3 years ago
rishflab 5e35a2e575 Fix duplication of entry in CHANGELOG.md 3 years ago
COMIT Botty McBotface d482db4e67 Prepare release 0.8.2 3 years ago
devbordecraft 7a12a847a0 Fetch multiple UTXOs when we do max_giveable 3 years ago
devbordecraft f2df838a3c Allow withdrawing and viewing of the bitcoin balance on swap-cli 3 years ago
bors[bot] 51d8623ed7
Merge #704
704: Allow withdrawing and viewing of the bitcoin balance on swap-cli r=rishflab a=devbordecraft

Same mechanics of the ASB but on swap-cli as discussed in #694

Co-authored-by: devbordecraft <devbordecraft>
3 years ago
devbordecraft e8a6af1517 Allow withdrawing and viewing of the bitcoin balance on swap-cli
Fix formatting issue

Fix after review
3 years ago
rishflab 8598bcade1 Configure electrum client to retry 5 times 3 years ago
Daniel Karzel 18faa786d6 Fail if something goes wrong when checking tx lock status
Probably a failure when interacting with the electrum node to get script
 status updates
3 years ago
Thomas Eizinger 25b123d6ed
Load wallet in `monero-wallet-rpc` on demand if necessary
Previously, we relied on the wallet in the `monero-wallet-rpc` daemon
to be loaded as we do on startup. As a consequence of this expectation,
restarting `monero-wallet-rpc` to fix bugs like #652 resulted in the
ASB no longer operating correctly.

To fix this, we now load the wallet on-demand in case the daemon responds
with the error code -13.

Ideally, we would implement this behaviour generically using the proxy
pattern on the `MoneroWalletRpc` trait. Unfortunately, when attempting
to do so we uncover a limitation in the design of `jsonrpc_client`.
This limitation is tracked in https://github.com/thomaseizinger/rust-jsonrpc-client/issues/47.
Once fixed, we can implement this logic in a more robust way that is not
tied to the `check_tx_key` RPC call but applies to any RPC call automatically.
3 years ago
Thomas Eizinger c04d2dc944
Merge two `CHANGED` sections in old changelog entry 3 years ago
Thomas Eizinger 6c446825b7
Instruct `Ping` to keep the connection alive 3 years ago
COMIT Botty McBotface 7126d77dc1 Prepare release 0.8.1 3 years ago
Thomas Eizinger 0296509110
Upgrade to bdk 0.10
This fixes #546. I don't know why, but I can't reproduce the problem
with the updated dependency.
3 years ago
Thomas Eizinger 5c4aec6ae3
Rendezvous point is not defaulted 3 years ago
COMIT Botty McBotface 403e3d2b33 Prepare release 0.8.0 3 years ago
Daniel Karzel 0dc3943d9c
Update default Monero node URLs and info
xmr.to nodes are not served at the xmr.to domain but moved to melo.tools
3 years ago
Daniel Karzel ab24f7bce5
Revert "Prepare release 0.8.0"
This reverts commit 50da9580
3 years ago
COMIT Botty McBotface 50da958078 Prepare release 0.8.0 3 years ago
Thomas Eizinger 40eccd089f
Change `--data-dir` for `--data-base-dir` 3 years ago
Thomas Eizinger acfd2dd6bb
Store Monero receive address in database and load it on resume 3 years ago
Thomas Eizinger 5463bde4f8
Add a mandatory `--change-address` parameter to `buy-xmr`
Fixes #513.
3 years ago
Daniel Karzel 625ff4868a
Changelog entry for the rendezvous integration 3 years ago
Thomas Eizinger ec4234fbb9
Merge `--seller-addr` and `--seller-peer-id` into `--seller` parameter
This simplifies the CLI's interface.
3 years ago
Thomas Eizinger bb8e841b0d
Make CHANGELOG.md follow the semantic newline spec 3 years ago
Your Name 665ea503d2 Make price ticker ws url configurable 3 years ago
Daniel Karzel 8e80628a71
Changelog entry for price guarantee changes 3 years ago
Thomas Eizinger 8a30ef725c
Refactor transports to construct them specific for each application
Instead of splitting up the transports into capabilities, we compose
them directly for each application. This allows us to remove the
websocket transport for the CLI which is really only needed for the
ASB to allow retrieval of quotes via the browser.
3 years ago
xscd 03857ca835 Print the Bitcoin address to the terminal as a QR code 3 years ago
COMIT Botty McBotface 7e6ff81efb Prepare release 0.7.0 3 years ago