def bitcoind_get_transactions_from_block(self, block, addresses):
    logging.info(addresses)
    transaction_ids = block['tx']

    transactions_per_address = {}
    for addr in addresses:
      transactions_per_address[addr] = []

    for tx in transaction_ids:
      try:
        raw_transaction = self.get_raw_transaction(tx)
      except ProtocolError:
        continue
      transaction = self.decode_raw_transaction(raw_transaction)
      for vout in transaction['vout']:
        if not 'addresses' in vout['scriptPubKey']:
          continue
        addresses_in_vout = set(vout['scriptPubKey']['addresses'])
        for addr in addresses:
          if addr in addresses_in_vout:
            transactions_per_address[addr].append(transaction)

    logging.info(transactions_per_address)
    return transactions_per_address
dataset/ETHPy150Open orisi/orisi/src/shared/bitcoind_client/bitcoinclient.py/BitcoinClient.bitcoind_get_transactions_from_block/original