tchange the format returned by history command - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 051853556e4f4903ee680ce1ab9bcd86e7286d4a
DIR parent dab31f0b4757fd754498a20ce3afbb39690bd154
HTML Author: ThomasV <thomasv@gitorious>
Date: Wed, 12 Mar 2014 09:52:17 +0100
change the format returned by history command
Diffstat:
M lib/commands.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
DIR diff --git a/lib/commands.py b/lib/commands.py
t@@ -337,10 +337,8 @@ class Commands:
time_str = "----"
label, is_default_label = self.wallet.get_label(tx_hash)
- if not label: label = tx_hash
- else: label = label + ' '*(64 - len(label) )
- out.append( "%16s"%time_str + " " + label + " " + format_satoshis(value)+ " "+ format_satoshis(balance) )
+ out.append({'txid':tx_hash, 'date':"%16s"%time_str, 'label':label, 'value':format_satoshis(value)})
return out