Commit graph

40 commits

Author SHA1 Message Date
Byron Hambly
fa6e1f02f5
clippy 2023-12-14 20:45:20 +02:00
binarybaron
ba6d9a774a Wait for background tasks to complete before exiting CLI 2023-12-05 16:02:29 +01:00
Lorenzo Tucci
4e631759b2
cargo fmt 2023-10-07 19:02:11 +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
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
03be15b069 WIP: RPC server integration tests 2023-09-24 17:30:05 +02: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
aa74b1ff4c Wait for swap to be suspended after sending signal 2023-08-28 12:23:12 +02:00
binarybaron
a104c5aa7b Wait for swap to be suspended after sending signal 2023-08-28 11:02:04 +02:00
binarybaron
bbcfffab6d WIP: Struct for concurrent swaps manager 2023-08-16 17:59:44 +02:00
Lorenzo Tucci
969c58e987 initiating swaps in a separate task and handling shutdown signals with broadcast queues 2023-08-14 11:31:54 +02:00
Lorenzo Tucci
6a9f72a857 initiating swaps in a separate task and handling shutdown signals with broadcast queues 2023-08-14 11:21:04 +02:00
binarybaron
433bf824f9 Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
2023-08-12 23:26:08 +02:00
binarybaron
7193866c30 dprint fmt 2023-08-10 00:15:16 +02:00
binarybaron
186b242db5 Add called api method and swap_id to tracing for context, reduced boilerplate 2023-08-09 22:30:41 +02:00
Lorenzo Tucci
41399ab015 set server listen address manually and return file locations in JSON on Config 2023-08-04 21:49:05 +02:00
Lorenzo Tucci
dc8982731c
fix: add data_dir to config to make config command work 2023-01-24 20:54:37 +01:00
Lorenzo Tucci
250764ed30
fix missing import in test 2023-01-11 18:42:31 +01:00
Lorenzo Tucci
9d1a39b2ff
fixing formatting and cargo clippy warnings 2023-01-11 14:52:42 +01:00
Lorenzo Tucci
925c7bc179
merging master changes 2023-01-11 13:36:03 +01:00
Lorenzo Tucci
b5396798e4
fixing warnings 2023-01-11 13:07:11 +01:00
Lorenzo Tucci
cf5efa8ad0
add broadcast channel to handle shutdowns gracefully and prepare for RPC server test 2022-12-09 22:33:52 +01:00
Lorenzo Tucci
aeeffccda2
moving methods to api and validating addresses for rpc 2022-12-05 20:11:58 +01:00
Lorenzo Tucci
a26822d85b
split api module and propagate errors with rpc server 2022-12-05 19:26:47 +01:00
Lorenzo Tucci
500684a43e
uncommenting and fixing more tests 2022-12-04 22:12:33 +01:00
Lorenzo Tucci
f5b62f967c
fixing tests in cli module 2022-12-04 20:50:53 +01:00
binarybaron
e1983d5639 Cleanup, formatting, add get_seller, get_swap_start_date RPC endpoints 2022-12-02 21:46:27 +01:00
binarybaron
54c89217f6 Respond with bitcoin withdraw txid 2022-11-30 16:35:39 +01:00
Lorenzo Tucci
beec7ac9c0 saving: cleaning up and initial work for tests 2022-11-30 16:35:39 +01:00
Lorenzo Tucci
f4f6ec4239 cleaning up, renamed Init to Context 2022-11-30 16:35:39 +01:00
Lorenzo Tucci
f26b27c266 writing async rpc methods and using arc for shared struct references 2022-11-30 16:35:39 +01:00
Lorenzo Tucci
da3307d4d6 updating wip 2022-11-30 16:35:39 +01:00
Lorenzo Tucci
22deb6b47e saving to wip 2022-11-30 16:35:39 +01:00
Lorenzo Tucci
87e5dd8b53 saving to wip 2022-11-30 16:35:39 +01:00
Lorenzo Tucci
4413a8d489 saving: implementing internal api shared by cli and rpc server 2022-11-30 16:35:39 +01:00