mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-05-24 17:31:39 -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
|
@ -777,7 +777,8 @@ impl Header {
|
|||
|
||||
#[cfg(windows)]
|
||||
fn fill_platform_from(&mut self, meta: &Metadata, mode: HeaderMode) {
|
||||
// There's no concept of a file mode on Windows, so do a best approximation here.
|
||||
// There's no concept of a file mode on Windows, so do a best approximation
|
||||
// here.
|
||||
match mode {
|
||||
HeaderMode::Complete => {
|
||||
self.set_uid(0);
|
||||
|
@ -1100,7 +1101,8 @@ impl GnuHeader {
|
|||
truncate(&self.uname)
|
||||
}
|
||||
|
||||
/// Gets the fullname (group:user) in a "lossy" way, used for error reporting ONLY.
|
||||
/// Gets the fullname (group:user) in a "lossy" way, used for error
|
||||
/// reporting ONLY.
|
||||
fn fullname_lossy(&self) -> String {
|
||||
format!(
|
||||
"{}:{}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue