1
0

make wallet.get_address_index faster by storing an addr->index dict

This commit is contained in:
SomberNight
2018-01-27 17:33:26 +01:00
parent 7ab9fa5be4
commit 7f3b627aa4
2 changed files with 19 additions and 5 deletions

View File

@@ -62,6 +62,7 @@ from .fee_slider import FeeSlider
from .util import *
from electrum.util import profiler
class StatusBarButton(QPushButton):
def __init__(self, icon, tooltip, func):
@@ -325,6 +326,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
self.print_error('close_wallet', self.wallet.storage.path)
run_hook('close_wallet', self.wallet)
@profiler
def load_wallet(self, wallet):
wallet.thread = TaskThread(self, self.on_error)
self.wallet = wallet