Revert "Merge branch 'master' into master"

This reverts commit a63f2c7cea, reversing
changes made to d774272fee.
This commit is contained in:
Gary Yu
2019-04-25 14:59:45 +08:00
parent a63f2c7cea
commit e509405b8a
17 changed files with 26 additions and 772 deletions
+2 -30
View File
@@ -433,20 +433,6 @@ pub fn outputs(
Ok(())
}
pub fn payments(
wallet: Arc<Mutex<WalletInst<impl NodeClient + 'static, keychain::ExtKeychain>>>,
g_args: &GlobalArgs,
dark_scheme: bool,
) -> Result<(), Error> {
controller::owner_single_use(wallet.clone(), |api| {
let res = api.node_height()?;
let (validated, outputs) = api.retrieve_payments(true, None)?;
display::payments(&g_args.account, res.height, validated, outputs, dark_scheme)?;
Ok(())
})?;
Ok(())
}
/// Txs command args
pub struct TxsArgs {
pub id: Option<u32>,
@@ -476,22 +462,8 @@ pub fn txs(
let (_, outputs) = api.retrieve_outputs(true, false, args.id)?;
display::outputs(&g_args.account, res.height, validated, outputs, dark_scheme)?;
// should only be one here, but just in case
for tx in &txs {
let (_, outputs) = api.retrieve_payments(true, tx.tx_slate_id)?;
if outputs.len() > 0 {
display::payments(
&g_args.account,
res.height,
validated,
outputs,
dark_scheme,
)?;
}
}
// should only be one here, but just in case
for tx in &txs {
display::tx_messages(tx, dark_scheme)?;
for tx in txs {
display::tx_messages(&tx, dark_scheme)?;
}
};
Ok(())