tfchain/TFChainWallet.py
def output_add(self, output, confirmed=True, spent=False):
        """
        Add an output to the Wallet's balance.
        """
        if confirmed: # confirmed outputs
            if spent:
                self._outputs_spent[output.id] = output
                # delete from other output lists if prior registered
                self._outputs.pop(output.id, None)
                self._outputs_unconfirmed.pop(output.id, None)
                self._outputs_unconfirmed_spent.pop(output.id, None)
            elif output.id not in self._outputs_spent and output.id not in self._outputs_unconfirmed_spent:
                self._outputs[output.id] = output
                # delete from other output lists if prior registered
                self._outputs_unconfirmed.pop(output.id, None)
        elif output.id not in self._outputs_spent: # unconfirmed outputs
            if spent:
                self._outputs_unconfirmed_spent[output.id] = output
                # delete from other output lists if prior registered
                self._outputs_unconfirmed.pop(output.id, None)
                self._outputs.pop(output.id, None)
            elif output.id not in self._outputs_unconfirmed_spent:
                self._outputs_unconfirmed[output.id] = output
        self._addresses.add(str(output.condition.unlockhash))

        Add an output to the Wallet's balance.
        
Add an output to the Wallet's balance.
Add an output to the Wallet ' s balance .
def output_add(self, output, confirmed=True, spent=False):
        if confirmed: 
            if spent:
                self._outputs_spent[output.id] = output
                self._outputs.pop(output.id, None)
                self._outputs_unconfirmed.pop(output.id, None)
                self._outputs_unconfirmed_spent.pop(output.id, None)
            elif output.id not in self._outputs_spent and output.id not in self._outputs_unconfirmed_spent:
                self._outputs[output.id] = output
                self._outputs_unconfirmed.pop(output.id, None)
        elif output.id not in self._outputs_spent: 
            if spent:
                self._outputs_unconfirmed_spent[output.id] = output
                self._outputs_unconfirmed.pop(output.id, None)
                self._outputs.pop(output.id, None)
            elif output.id not in self._outputs_unconfirmed_spent:
                self._outputs_unconfirmed[output.id] = output
        self._addresses.add(str(output.condition.unlockhash))
def output_add ( self , output , confirmed = True , spent = False ) : if confirmed : if spent : self . _outputs_spent [ output . id ] = output self . _outputs . pop ( output . id , None ) self . _outputs_unconfirmed . pop ( output . id , None ) self . _outputs_unconfirmed_spent . pop ( output . id , None ) elif output . id not in self . _outputs_spent and output . id not in self . _outputs_unconfirmed_spent : self . _outputs [ output . id ] = output self . _outputs_unconfirmed . pop ( output . id , None ) elif output . id not in self . _outputs_spent : if spent : self . _outputs_unconfirmed_spent [ output . id ] = output self . _outputs_unconfirmed . pop ( output . id , None ) self . _outputs . pop ( output . id , None ) elif output . id not in self . _outputs_unconfirmed_spent : self . _outputs_unconfirmed [ output . id ] = output self . _addresses . add ( str ( output . condition . unlockhash ) )
Add an output to the Wallet's balance.
Add an output to the Wallet ' s balance .
"""
        Add an output to the Wallet's balance.
        """ # confirmed outputs # delete from other output lists if prior registered # delete from other output lists if prior registered # unconfirmed outputs # delete from other output lists if prior registered
self
output
confirmed
spent