1
0

hook openalias plugin to command line interface

This commit is contained in:
ThomasV
2015-05-31 14:42:16 +02:00
parent bb7437e534
commit 5a76a0fc95
3 changed files with 11 additions and 2 deletions

View File

@@ -464,6 +464,7 @@ class StoreDict(dict):
import bitcoin
from plugins import run_hook
class Contacts(StoreDict):
def __init__(self, config):
@@ -474,6 +475,10 @@ class Contacts(StoreDict):
return k
if k in self.keys():
_type, addr = self[k]
return addr
if _type == 'address':
return addr
out = run_hook('resolve_address', k)
if out:
return out
raise Exception("invalid Bitcoin address", k)