Merge pull request #149 from polymorphm/tiny-bugfix--history-balance
command ``history`` fail -- if not transactions
This commit is contained in:
1
electrum
1
electrum
@@ -563,6 +563,7 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
if cmd == 'history':
|
if cmd == 'history':
|
||||||
import datetime
|
import datetime
|
||||||
|
balance = 0
|
||||||
for item in wallet.get_tx_history():
|
for item in wallet.get_tx_history():
|
||||||
tx_hash, conf, is_mine, value, fee, balance, timestamp = item
|
tx_hash, conf, is_mine, value, fee, balance, timestamp = item
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user