Need to set p.wallet unfortunately

Fixes #1553
This commit is contained in:
Neil Booth 2015-11-19 08:30:38 +09:00
parent 47e5bd653a
commit 3211d752c7
1 changed files with 2 additions and 0 deletions

View File

@ -162,6 +162,8 @@ def _run_hook(name, always, *args):
results = []
f_list = hooks.get(name, [])
for p, f in f_list:
if name == 'load_wallet':
p.wallet = args[0] # For for p.is_enabled() below
if always or p.is_enabled():
try:
r = f(*args)