fix blocks variable name
This commit is contained in:
parent
e219c1b761
commit
0da51ba027
|
@ -490,7 +490,7 @@ class Wallet:
|
|||
'fee':self.fee,
|
||||
'host':self.interface.host,
|
||||
'port':self.interface.port,
|
||||
'blocks':self.blocks,
|
||||
'blocks':self.interface.blocks,
|
||||
'seed':self.seed,
|
||||
'addresses':self.addresses,
|
||||
'change_addresses':self.change_addresses,
|
||||
|
@ -520,7 +520,7 @@ class Wallet:
|
|||
self.fee = int( d.get('fee') )
|
||||
self.interface.host = d.get('host')
|
||||
self.interface.set_port( d.get('port') )
|
||||
self.blocks = d.get('blocks')
|
||||
self.interface.blocks = d.get('blocks')
|
||||
self.seed = d.get('seed')
|
||||
self.addresses = d.get('addresses')
|
||||
self.change_addresses = d.get('change_addresses')
|
||||
|
|
|
@ -910,10 +910,10 @@ class BitcoinGUI:
|
|||
c, u = self.wallet.get_balance()
|
||||
if self.is_connected:
|
||||
self.status_image.set_from_stock(gtk.STOCK_YES, gtk.ICON_SIZE_MENU)
|
||||
self.network_button.set_tooltip_text("Connected to %s.\n%d blocks\nresponse time: %f"%(self.wallet.interface.host, self.wallet.blocks, self.wallet.interface.rtime))
|
||||
self.network_button.set_tooltip_text("Connected to %s.\n%d blocks\nresponse time: %f"%(self.wallet.interface.host, self.wallet.interface.blocks, self.wallet.interface.rtime))
|
||||
else:
|
||||
self.status_image.set_from_stock(gtk.STOCK_NO, gtk.ICON_SIZE_MENU)
|
||||
self.network_button.set_tooltip_text("Trying to contact %s.\n%d blocks"%(self.wallet.interface.host, self.wallet.blocks))
|
||||
self.network_button.set_tooltip_text("Trying to contact %s.\n%d blocks"%(self.wallet.interface.host, self.wallet.interface.blocks))
|
||||
text = "Balance: %s "%( format_satoshis(c) )
|
||||
if u: text += "[+ %s unconfirmed]"%( format_satoshis(u) )
|
||||
if self.error: text = self.error
|
||||
|
@ -950,7 +950,7 @@ class BitcoinGUI:
|
|||
for tx in self.wallet.get_tx_history():
|
||||
tx_hash = tx['tx_hash']
|
||||
if tx['height']:
|
||||
conf = self.wallet.blocks - tx['height'] + 1
|
||||
conf = self.wallet.interface.blocks - tx['height'] + 1
|
||||
time_str = datetime.datetime.fromtimestamp( tx['nTime']).isoformat(' ')[:-3]
|
||||
conf_icon = gtk.STOCK_APPLY
|
||||
else:
|
||||
|
@ -1035,7 +1035,7 @@ class BitcoinGUI:
|
|||
image = gtk.Image()
|
||||
image.set_from_stock(gtk.STOCK_NETWORK, gtk.ICON_SIZE_DIALOG)
|
||||
if self.is_connected:
|
||||
status = "Connected to %s.\n%d blocks\nresponse time: %f"%(wallet.interface.host, wallet.blocks, wallet.interface.rtime)
|
||||
status = "Connected to %s.\n%d blocks\nresponse time: %f"%(wallet.interface.host, wallet.interface.blocks, wallet.interface.rtime)
|
||||
else:
|
||||
status = "Not connected"
|
||||
|
||||
|
|
Loading…
Reference in New Issue