Json for tx list

This commit is contained in:
Aditya Kulkarni
2019-09-08 15:21:37 -07:00
parent 972558620c
commit f9d0878a81
2 changed files with 21 additions and 36 deletions

View File

@@ -136,7 +136,8 @@ impl Command for TransactionsCommand {
}
fn exec(&self, _args: &[String], lightclient: &mut LightClient) {
lightclient.do_list_transactions();
let txns = lightclient.do_list_transactions();
println!("{}", txns.pretty(2));
}
}