Skip to content
Snippets Groups Projects
Commit 5d08fa7a authored by inso's avatar inso
Browse files

Fixed a bug when cache loading didn't refresh at startup

parent 2523046b
No related branches found
No related tags found
No related merge requests found
...@@ -97,6 +97,8 @@ class Application(object): ...@@ -97,6 +97,8 @@ class Application(object):
json_data = open(wallet_path, 'r') json_data = open(wallet_path, 'r')
data = json.load(json_data) data = json.load(json_data)
wallet.cache.load_from_json(data) wallet.cache.load_from_json(data)
for community in account.communities:
wallet.cache.refresh(community)
def save(self, account): def save(self, account):
with open(config.parameters['data'], 'w') as outfile: with open(config.parameters['data'], 'w') as outfile:
......
...@@ -36,7 +36,7 @@ class BlockchainWatcher(QObject): ...@@ -36,7 +36,7 @@ class BlockchainWatcher(QObject):
for w in self.account.wallets: for w in self.account.wallets:
w.cache.refresh(self.community) w.cache.refresh(self.community)
logging.debug("New block, {0} mined in {1}".format(self.last_block, logging.debug("New block, {0} mined in {1}".format(current_block['number'],
self.community.currency)) self.community.currency))
self.new_block_mined.emit(current_block['number']) self.new_block_mined.emit(current_block['number'])
self.last_block = current_block['number'] self.last_block = current_block['number']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment