first add of getrawmempool - work in progress

This commit is contained in:
DenioD
2020-05-12 00:19:51 +02:00
parent 1da0f0e321
commit 431847ab49
4 changed files with 58 additions and 1 deletions

View File

@@ -652,6 +652,19 @@ impl LightClient {
}
}
pub fn do_rawmempool(&self) -> String {
match get_rawmempool(self.get_server_uri(), self.config.no_cert_verification) {
Ok(i) => {
let o = object!{
"ID" => i.id
};
o.pretty(2)
},
Err(e) => e
}
}
pub fn do_seed_phrase(&self) -> Result<JsonValue, &str> {
if !self.wallet.read().unwrap().is_unlocked_for_spending() {
error!("Wallet is locked");