1
0

new interface

This commit is contained in:
ThomasV
2012-03-13 16:43:56 +01:00
parent 3e49cfdbd4
commit 9e316b7d2b
3 changed files with 61 additions and 23 deletions

View File

@@ -449,8 +449,11 @@ class Wallet:
def create_new_address(self, bool):
address = self.create_new_address_without_history(bool)
self.history[address] = h = self.interface.retrieve_history(address)
self.status[address] = h[-1]['blk_hash'] if h else None
if self.interface.port == 50001:
self.interface.subscribe(address)
else:
self.history[address] = h = self.interface.retrieve_history(address)
self.status[address] = h[-1]['blk_hash'] if h else None
return address