#NEWLINE# def is_proper_transaction( self , tx , prevtxs ) : #NEWLINE# #INDENT# logging . info ( ( 'testing tx: %r' % tx ) ) #NEWLINE# logging . info ( ( 'with prevtxs: %r' % prevtxs ) ) #NEWLINE# if ( not self . oracle . btc . is_valid_transaction ( tx ) ) : #NEWLINE# #INDENT# logging . debug ( 'transaction invalid' ) #NEWLINE# return False #NEWLINE# #UNINDENT# ( inputs , outputs ) = self . btc . get_inputs_outputs ( tx ) #NEWLINE# if ( not self . includes_me ( prevtxs ) ) : #NEWLINE# #INDENT# logging . debug ( 'transaction does not include me' ) #NEWLINE# return False #NEWLINE# #UNINDENT# if self . oracle . btc . transaction_already_signed ( tx , prevtxs ) : #NEWLINE# #INDENT# logging . debug ( 'transaction already signed' ) #NEWLINE# return False #NEWLINE# #UNINDENT# return True