mempool integration
This commit is contained in:
@@ -32,10 +32,11 @@ impl Command for SyncCommand {
|
||||
|
||||
fn exec(&self, _args: &[&str], lightclient: &LightClient) -> String {
|
||||
match lightclient.do_sync(true) {
|
||||
Ok(j) => j.pretty(2),
|
||||
Err(e) => e
|
||||
Ok(j) => j.pretty(2),
|
||||
Err(e) => e.to_string()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
struct EncryptionStatusCommand {}
|
||||
@@ -112,7 +113,6 @@ impl Command for RescanCommand {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
struct ClearCommand {}
|
||||
impl Command for ClearCommand {
|
||||
fn help(&self) -> String {
|
||||
@@ -250,7 +250,6 @@ impl Command for BalanceCommand {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
struct AddressCommand {}
|
||||
impl Command for AddressCommand {
|
||||
fn help(&self) -> String {
|
||||
@@ -385,7 +384,6 @@ impl Command for DecryptCommand {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
struct UnlockCommand {}
|
||||
impl Command for UnlockCommand {
|
||||
fn help(&self) -> String {
|
||||
@@ -425,7 +423,6 @@ impl Command for UnlockCommand {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
struct LockCommand {}
|
||||
impl Command for LockCommand {
|
||||
fn help(&self) -> String {
|
||||
@@ -466,7 +463,6 @@ impl Command for LockCommand {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
struct SendCommand {}
|
||||
impl Command for SendCommand {
|
||||
fn help(&self) -> String {
|
||||
@@ -770,19 +766,17 @@ impl Command for HeightCommand {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
struct NewAddressCommand {}
|
||||
impl Command for NewAddressCommand {
|
||||
fn help(&self) -> String {
|
||||
let mut h = vec![];
|
||||
h.push("Create a new address in this wallet");
|
||||
h.push("Usage:");
|
||||
h.push("new [z | t]");
|
||||
h.push("new [z | r]");
|
||||
h.push("");
|
||||
h.push("Example:");
|
||||
h.push("To create a new z address:");
|
||||
h.push("new z");
|
||||
h.push("To create a new zs address:");
|
||||
h.push("new zs");
|
||||
h.join("\n")
|
||||
}
|
||||
|
||||
@@ -939,9 +933,6 @@ pub fn do_user_command(cmd: &str, args: &Vec<&str>, lightclient: &LightClient) -
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod tests {
|
||||
use lazy_static::lazy_static;
|
||||
|
||||
Reference in New Issue
Block a user