tfchain/TFChainWallet.py
def _key_pair_add(self, key_pair, add_count=True, offset=0):
        """
        A private utility function that is used by default
        by the _key_pair_new wallet method to integrate a newly created key pair
        into this wallet's key pair dictionary.

        This method is seperate as we also scan for other keys during the fetching
        of the balance of a wallet. When we do, we want to create new key pairs,
        but only integrate them, if indeed we found the key (or a key after it) was used.
        """
        addr = str(key_pair.unlockhash)
        if addr in self._key_pairs:
            raise KeyError("wallet already contains a key pair for unlock hash {}".format(addr))
        self._key_pairs[addr] = key_pair
        if add_count:
            self._key_count += 1+offset

        A private utility function that is used by default
        by the _key_pair_new wallet method to integrate a newly created key pair
        into this wallet's key pair dictionary.

        This method is seperate as we also scan for other keys during the fetching
        of the balance of a wallet. When we do, we want to create new key pairs,
        but only integrate them, if indeed we found the key (or a key after it) was used.
        
A private utility function that is used by default
by the _key_pair_new wallet method to integrate a newly created key pair
into this wallet's key pair dictionary.

This method is seperate as we also scan for other keys during the fetching
of the balance of a wallet. When we do, we want to create new key pairs,
but only integrate them, if indeed we found the key (or a key after it) was used.
A private utility function that is used by default by the _key_pair_new wallet method to integrate a newly created key pair into this wallet ' s key pair dictionary . This method is seperate as we also scan for other keys during the fetching of the balance of a wallet . When we do we want to create new key pairs but only integrate them if indeed we found the key ( or a key after it ) was used .
def _key_pair_add(self, key_pair, add_count=True, offset=0):
        addr = str(key_pair.unlockhash)
        if addr in self._key_pairs:
            raise KeyError("wallet already contains a key pair for unlock hash {}".format(addr))
        self._key_pairs[addr] = key_pair
        if add_count:
            self._key_count += 1+offset
def _key_pair_add ( self , key_pair , add_count = True , offset = 0 ) : addr = str ( key_pair . unlockhash ) if addr in self . _key_pairs : raise KeyError ( "wallet already contains a key pair for unlock hash {}" . format ( addr ) ) self . _key_pairs [ addr ] = key_pair if add_count : self . _key_count += 1 + offset
A private utility function that is used by default
by the _key_pair_new wallet method to integrate a newly created key pair
into this wallet's key pair dictionary.
A private utility function that is used by default by the _key_pair_new wallet method to integrate a newly created key pair into this wallet ' s key pair dictionary .
"""
        A private utility function that is used by default
        by the _key_pair_new wallet method to integrate a newly created key pair
        into this wallet's key pair dictionary.

        This method is seperate as we also scan for other keys during the fetching
        of the balance of a wallet. When we do, we want to create new key pairs,
        but only integrate them, if indeed we found the key (or a key after it) was used.
        """
self
key_pair
add_count
offset