Esempio n. 1
0
 private void sendTransactionsToWallet(
     StoredBlock block, NewBlockType blockType, List<Transaction> newTransactions)
     throws VerificationException {
   // Scan the transactions to find out if any mention addresses we own.
   for (Transaction tx : newTransactions) {
     try {
       scanTransaction(block, tx, blockType);
     } catch (ScriptException e) {
       // We don't want scripts we don't understand to break the block chain,
       // so just note that this tx was not scanned here and continue.
       log.warn("Failed to parse a script: " + e.toString());
     }
   }
 }