commit 38e3143bd0472948b52ab27f579aa3224de5b6fd
parent 0aee9bbbb0c6da74eefbfc9e50a1f2051eb57b5f
Author: SomberNight <somber.night@protonmail.com>
Date: Wed, 6 Dec 2017 18:30:02 +0100
fix command: createmultisig
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/commands.py b/lib/commands.py
@@ -38,7 +38,7 @@ from .util import bfh, bh2u, format_satoshis
from .import bitcoin
from .bitcoin import is_address, hash_160, COIN, TYPE_ADDRESS
from .i18n import _
-from .transaction import Transaction
+from .transaction import Transaction, multisig_script
from .paymentrequest import PR_PAID, PR_UNPAID, PR_UNKNOWN, PR_EXPIRED
from .plugins import run_hook
@@ -256,7 +256,7 @@ class Commands:
def createmultisig(self, num, pubkeys):
"""Create multisig address"""
assert isinstance(pubkeys, list), (type(num), type(pubkeys))
- redeem_script = Transaction.multisig_script(pubkeys, num)
+ redeem_script = multisig_script(pubkeys, num)
address = bitcoin.hash160_to_p2sh(hash_160(bfh(redeem_script)))
return {'address':address, 'redeemScript':redeem_script}