more get_address fixes

This commit is contained in:
Lex Berezhny 2018-10-08 22:49:50 -04:00
parent eebfe2be08
commit 75dd93436c

View file

@ -135,7 +135,7 @@ class BaseLedger(metaclass=LedgerRegistry):
@defer.inlineCallbacks @defer.inlineCallbacks
def get_private_key_for_address(self, address): def get_private_key_for_address(self, address):
match = yield self.db.get_address(address) match = yield self.db.get_address(address=address)
if match: if match:
for account in self.accounts: for account in self.accounts:
if match['account'] == account.public_key.address: if match['account'] == account.public_key.address: