@keep_alive('server')
  def transaction_contains_output(self, raw_transaction, address, fee):
    transaction_dict = self.server.decoderawtransaction(raw_transaction)
    if not 'vout' in transaction_dict:
      return False
    for vout in transaction_dict['vout']:
      # Sanity checks
      if not 'value' in vout:
        continue
      if not 'scriptPubKey' in vout:
        continue
      if not 'addresses' in vout['scriptPubKey']:
        continue

      for address in vout['scriptPubKey']['addresses']:
        if address == address:
          value = Decimal(vout['value'])
          if value >= Decimal(fee):
            return True
    return False
dataset/ETHPy150Open orisi/orisi/src/shared/bitcoind_client/bitcoinclient.py/BitcoinClient.transaction_contains_output/original