mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-07-30 20:01:26 +00:00
Don't return json from GRPC
This commit is contained in:
@@ -4,8 +4,6 @@ use std::sync::{Arc};
|
|||||||
use std::net::ToSocketAddrs;
|
use std::net::ToSocketAddrs;
|
||||||
use std::net::SocketAddr;
|
use std::net::SocketAddr;
|
||||||
|
|
||||||
use json::object;
|
|
||||||
|
|
||||||
use futures::{Future};
|
use futures::{Future};
|
||||||
use futures::stream::Stream;
|
use futures::stream::Stream;
|
||||||
|
|
||||||
@@ -286,11 +284,7 @@ pub fn broadcast_raw_tx(uri: &http::Uri, no_cert: bool, tx_bytes: Box<[u8]>) ->
|
|||||||
txid = txid[1..txid.len()-1].to_string();
|
txid = txid[1..txid.len()-1].to_string();
|
||||||
}
|
}
|
||||||
|
|
||||||
let r = object!{
|
Ok(txid)
|
||||||
"result" => "success",
|
|
||||||
"txid" => txid,
|
|
||||||
};
|
|
||||||
Ok(r.pretty(2))
|
|
||||||
} else {
|
} else {
|
||||||
Err(format!("Error: {:?}", sendresponse))
|
Err(format!("Error: {:?}", sendresponse))
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user