Skip to content

Commit

Permalink
multisig version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
wozz committed May 16, 2014
1 parent 320bb25 commit 49badeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def redeem_script(self, sequence):
return Transaction.multisig_script(pubkeys, 2)

def get_address(self, for_change, n):
address = hash_160_to_bc_address(hash_160(self.redeem_script((for_change, n)).decode('hex')), 5)
address = hash_160_to_bc_address(hash_160(self.redeem_script((for_change, n)).decode('hex')), 9)
return address

def get_master_pubkeys(self):
Expand Down
2 changes: 1 addition & 1 deletion lib/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def sendrawtransaction(self, raw):
def createmultisig(self, num, pubkeys):
assert isinstance(pubkeys, list)
redeem_script = Transaction.multisig_script(pubkeys, num)
address = hash_160_to_bc_address(hash_160(redeem_script.decode('hex')), 5)
address = hash_160_to_bc_address(hash_160(redeem_script.decode('hex')), 9)
return {'address':address, 'redeemScript':redeem_script}

def freeze(self,addr):
Expand Down

0 comments on commit 49badeb

Please sign in to comment.