mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
updates for stdio gui
This commit is contained in:
parent
911a60c02d
commit
9e5cf68e93
1 changed files with 4 additions and 4 deletions
|
@ -99,11 +99,11 @@ class ElectrumGui:
|
||||||
b = 0
|
b = 0
|
||||||
messages = []
|
messages = []
|
||||||
|
|
||||||
for item in self.wallet.get_tx_history():
|
for item in self.wallet.get_history():
|
||||||
tx_hash, confirmations, is_mine, value, fee, balance, timestamp = item
|
tx_hash, confirmations, value, timestamp, balance = item
|
||||||
if confirmations:
|
if confirmations:
|
||||||
try:
|
try:
|
||||||
time_str = datetime.datetime.fromtimestamp( timestamp).isoformat(' ')[:-3]
|
time_str = datetime.datetime.fromtimestamp(timestamp).isoformat(' ')[:-3]
|
||||||
except Exception:
|
except Exception:
|
||||||
time_str = "unknown"
|
time_str = "unknown"
|
||||||
else:
|
else:
|
||||||
|
@ -119,7 +119,7 @@ class ElectrumGui:
|
||||||
print(self.get_balance())
|
print(self.get_balance())
|
||||||
|
|
||||||
def get_balance(self):
|
def get_balance(self):
|
||||||
if self.wallet.network.interface and self.wallet.network.interface.is_connected:
|
if self.wallet.network.is_connected():
|
||||||
if not self.wallet.up_to_date:
|
if not self.wallet.up_to_date:
|
||||||
msg = _( "Synchronizing..." )
|
msg = _( "Synchronizing..." )
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue