mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-07-25 07:45:16 -04:00
Download and run monero wallet rpc on swap cli startup
If the monero wallet rpc has not already been downloaded we download the monero cli package and extract the wallet rpc. The unneeded files are cleaned up. The monero wallet rpc is started on a random port which is provided to the swap cli. We added a fork of tokio-tar via a git subtree because we needed a tokio-tar version that was compatible with tokio 1.0. Remove this subtree in favor of a regular cargo dependency when this PR merges: https://github.com/vorot93/tokio-tar/pull/3.
This commit is contained in:
parent
18ba8f49c4
commit
51c16f23d8
12 changed files with 354 additions and 52 deletions
|
@ -37,8 +37,8 @@ macro_rules! tar {
|
|||
|
||||
mod header;
|
||||
|
||||
/// test that we can concatenate the simple.tar archive and extract the same entries twice when we
|
||||
/// use the ignore_zeros option.
|
||||
/// test that we can concatenate the simple.tar archive and extract the same
|
||||
/// entries twice when we use the ignore_zeros option.
|
||||
#[tokio::test]
|
||||
async fn simple_concat() {
|
||||
let bytes = tar!("simple.tar");
|
||||
|
@ -52,7 +52,8 @@ async fn simple_concat() {
|
|||
// concat two archives (with null in-between);
|
||||
archive_bytes.extend(bytes);
|
||||
|
||||
// test now that when we read the archive, it stops processing at the first zero header.
|
||||
// test now that when we read the archive, it stops processing at the first zero
|
||||
// header.
|
||||
let actual = decode_names(&mut Archive::new(Cursor::new(&archive_bytes))).await;
|
||||
assert_eq!(expected, actual);
|
||||
|
||||
|
|
|
@ -189,7 +189,8 @@ fn set_metadata_deterministic() {
|
|||
h
|
||||
}
|
||||
|
||||
// Create "the same" File twice in a row, one second apart, with differing readonly values.
|
||||
// Create "the same" File twice in a row, one second apart, with differing
|
||||
// readonly values.
|
||||
let one = mk_header(tmppath.as_path(), false);
|
||||
thread::sleep(time::Duration::from_millis(1050));
|
||||
let two = mk_header(tmppath.as_path(), true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue