Merge pull request #36 from adityapk00/master

Merge
This commit is contained in:
Denio
2019-10-31 15:28:28 +01:00
committed by GitHub
6 changed files with 82 additions and 36 deletions

View File

@@ -639,6 +639,14 @@ impl LightClient {
res
}
pub fn do_encryption_status(&self) -> JsonValue {
let wallet = self.wallet.read().unwrap();
object!{
"encrypted" => wallet.is_encrypted(),
"locked" => !wallet.is_unlocked_for_spending()
}
}
pub fn do_list_transactions(&self) -> JsonValue {
let wallet = self.wallet.read().unwrap();