Skip to content
Snippets Groups Projects
Commit 2db366bd authored by Fabian Schuh's avatar Fabian Schuh
Browse files

[wallet] active keys have priority over memo keys

parent dcff407d
No related branches found
No related tags found
No related merge requests found
...@@ -339,12 +339,12 @@ class Wallet(): ...@@ -339,12 +339,12 @@ class Wallet():
def getKeyType(self, account, pub): def getKeyType(self, account, pub):
""" Get key type """ Get key type
""" """
if pub == account["options"]["memo_key"]:
return "memo"
for authority in ["owner", "active"]: for authority in ["owner", "active"]:
for key in account[authority]["key_auths"]: for key in account[authority]["key_auths"]:
if pub == key[0]: if pub == key[0]:
return authority return authority
if pub == account["options"]["memo_key"]:
return "memo"
return None return None
def getAccounts(self): def getAccounts(self):
......
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