URI: 
       tfix syntax of redeem_script - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 38e662e5227ae0fa819e353b65aa1195bb92ba9f
   DIR parent c0fe5962ad32ab43d75b9cee124b860c0acbdf24
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Tue,  8 Jul 2014 19:27:43 +0200
       
       fix syntax of redeem_script
       
       Diffstat:
         M lib/account.py                      |      17 ++++-------------
       
       1 file changed, 4 insertions(+), 13 deletions(-)
       ---
   DIR diff --git a/lib/account.py b/lib/account.py
       t@@ -72,11 +72,8 @@ class Account(object):
            def get_name(self, k):
                return _('Main account')
        
       -    def get_keyID(self, *sequence):
       -        pass
       -
       -    def redeem_script(self, *sequence):
       -        pass
       +    def redeem_script(self, for_change, n):
       +        return None
        
        
        class PendingAccount(Account):
       t@@ -220,17 +217,14 @@ class OldAccount(Account):
                    raise Exception('Invalid password')
                return True
        
       -    def redeem_script(self, sequence):
       -        return None
       -
            def get_master_pubkeys(self):
                return [self.mpk.encode('hex')]
        
            def get_type(self):
                return _('Old Electrum format')
        
       -    def get_xpubkeys(self, sequence):
       -        s = ''.join(map(lambda x: bitcoin.int_to_hex(x,2), sequence))
       +    def get_xpubkeys(self, for_change, n):
       +        s = ''.join(map(lambda x: bitcoin.int_to_hex(x,2), (for_change, n)))
                mpk = self.mpk.encode('hex')
                x_pubkey = 'fe' + mpk + s
                return [ x_pubkey ]
       t@@ -299,9 +293,6 @@ class BIP32_Account(Account):
                    out.append(pk)
                return out
        
       -    def redeem_script(self, sequence):
       -        return None
       -
            def get_type(self):
                return _('Standard 1 of 1')