commit f522d6c36dd06bddefc508ef6f8ef3198a8b96d7
parent 53b872acdfa55bf1ac9956bcd0e78c3263a625a3
Author: ThomasV <thomasv@gitorious>
Date: Wed, 2 Apr 2014 14:04:39 +0200
sort pubkeys in multisig scripts
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/account.py b/lib/account.py
@@ -188,7 +188,7 @@ class BIP32_Account_2of2(BIP32_Account):
return cK.encode('hex')
def redeem_script(self, sequence):
- pubkeys = self.get_pubkeys(sequence)
+ pubkeys = sorted(self.get_pubkeys(sequence))
return Transaction.multisig_script(pubkeys, 2)
def get_address(self, for_change, n):