Commit graph

1287 commits

Author SHA1 Message Date
binarybaron
b51b0e02d6 Return error to API caller if bid quote request fails 2023-11-08 22:41:30 +01:00
Lorenzo Tucci
f9912b66da
Improve debug text for swap resume 2023-11-06 22:18:06 +02:00
Lorenzo Tucci
28b0e06f78
Remove inner tokio::select in BuyXmr and Resume 2023-11-06 22:14:53 +02:00
binarybaron
2634b55fc1 Release swap lock after receiving shutdown signal 2023-11-06 20:24:50 +01:00
binarybaron
2c6c7b964c Spawn event loop before requesting quote 2023-11-06 19:24:59 +01:00
binarybaron
a53a420794 Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr 2023-11-06 16:05:32 +01:00
Lorenzo Tucci
c7f411c8c9
Moving swap initialization code inside tokio select block to handle swap lock release logic 2023-11-03 19:13:17 +02:00
Lorenzo Tucci
4e631759b2
cargo fmt 2023-10-07 19:02:11 +03:00
Lorenzo Tucci
c0e759e9f2
moving buy_xmr initialization code out of spawned tasks 2023-10-04 21:14:14 +03:00
binarybaron
18311f74c4 Use in_current_span to pass down tracing span to spawned tasks 2023-10-03 18:30:03 +02:00
Lorenzo Tucci
bb374fe7ba
Merge branch 'rpc-server' of github.com:yamabiiko/xmr-btc-swap into rpc-server 2023-10-01 14:44:21 +03:00
Lorenzo Tucci
d2d778f2ca
move resume swap initialization code out of spawned task 2023-10-01 14:43:53 +03:00
yamabiiko
c531034f36
Merge branch 'master' into rpc-server 2023-10-01 14:04:44 +03:00
Lorenzo Tucci
8a3dc61525
cargo clippy fixes 2023-10-01 14:03:42 +03:00
Lorenzo Tucci
9c79738e69
merge with master 2023-10-01 13:39:43 +03:00
Byron Hambly
28c2530385
clippy --fix 2023-09-29 15:14:16 +02:00
Byron Hambly
4396c7db8b
test: fix assert 2023-09-29 15:13:52 +02:00
pokkst
5182b4f53a
Update lock timeout to 10 min 2023-09-29 08:08:25 -05:00
Byron Hambly
e0891e08c5
fix compile and warnings in tests/rpc.rs 2023-09-29 15:02:29 +02:00
binarybaron
202206a3e8 Update rpc tests 2023-09-26 17:46:19 +02:00
binarybaron
d7b0d068b6 Merge branch 'rpc-server' of https://github.com/yamabiiko/xmr-btc-swap into rpc-server 2023-09-24 19:50:42 +02:00
binarybaron
d3bb838806 WIP: Integration tests for RPC server 2023-09-24 19:47:35 +02:00
binarybaron
50f929aea4 Merge branch 'rpc-server' of https://github.com/yamabiiko/xmr-btc-swap into rpc-server 2023-09-24 17:31:17 +02:00
binarybaron
03be15b069 WIP: RPC server integration tests 2023-09-24 17:30:05 +02:00
Lorenzo Tucci
959a309d0e
Merge branch 'rpc-server' of github.com:yamabiiko/xmr-btc-swap into rpc-server 2023-09-22 23:29:35 +03:00
Lorenzo Tucci
ec0bc8cd39
fixing test_cli_arguments and other tests 2023-09-22 23:28:49 +03:00
binarybaron
3c39a34a6e Remove unnecessary success property on suspend_current_swap response 2023-09-21 16:15:36 +02:00
binarybaron
bd2aef796d Fix typo in rpc server stopped tracing log 2023-09-21 15:21:05 +02:00
COMIT Botty McBotface
7824078975 Prepare release 0.12.3 2023-09-20 18:34:50 +00:00
binarybaron
f367c2ba49 Rename get_raw_history tp get_raw_states 2023-09-08 12:53:33 +02:00
binarybaron
2ec465aec7 Merge branch 'rpc-server' of https://github.com/yamabiiko/xmr-btc-swap into rpc-server 2023-09-08 12:52:04 +02:00
binarybaron
3467523849 Dynamically choose monero daemon to connect to 2023-09-07 19:10:23 +02:00
binarybaron
2e1909685d
Revert "Refresh monero monitoring wallet at startup to ensure daemon is is av…" 2023-09-01 17:36:00 +02:00
Lorenzo Tucci
a6f2180b1b
fix rpc tests, only check for RPC errors and not returned values 2023-09-01 17:15:24 +03:00
Lorenzo Tucci
ccf9b0c31f
fix compile issues for tests and use serial_test crate 2023-09-01 12:31:39 +03:00
Lorenzo Tucci
9b08f71bb8
merge upstream and fix some tests 2023-09-01 12:06:13 +03:00
binarybaron
844ebc7de3 Refresh monero monitoring wallet at startup to ensure daemon is is available 2023-08-31 00:47:18 +02:00
binarybaron
c6b76cc859 Update wallet.rs 2023-08-30 21:01:19 +02:00
binarybaron
7c69ed5d2b Return additonal info on GetSwapInfo 2023-08-30 01:34:07 +02:00
binarybaron
aa74b1ff4c Wait for swap to be suspended after sending signal 2023-08-28 12:23:12 +02:00
binarybaron
05577e3713 Rename Method::RawHistory to Method::GetRawStates 2023-08-28 12:23:12 +02:00
binarybaron
e13ed6f5c1 Add get_monero_recovery_info RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
2023-08-28 11:08:05 +02:00
binarybaron
f942a4e1ea Remove unused shutdown channel 2023-08-28 11:08:05 +02:00
binarybaron
011dd3441d use Span::current() to pass down to tracing span to spawned tasks 2023-08-28 11:08:05 +02:00
binarybaron
86ac0579f0 Sync bitcoin wallet before initial max_giveable call 2023-08-28 11:08:05 +02:00
binarybaron
1ec16c6bc1 Add tracing span attribute log_reference_id to logs caused by rpc call 2023-08-28 11:08:05 +02:00
binarybaron
fb4265b2ea Remove notes 2023-08-28 11:08:04 +02:00
binarybaron
a104c5aa7b Wait for swap to be suspended after sending signal 2023-08-28 11:02:04 +02:00
binarybaron
9c9644fe1b Rename Method::RawHistory to Method::GetRawStates 2023-08-28 11:02:04 +02:00
binarybaron
4623a08ebf Add get_monero_recovery_info RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
2023-08-28 11:02:04 +02:00