LOGGER.trace(String.format("Ignoring invalid (%s) TRANSACTION %s from peer %s",validationResult.name(),Base58.encode(transactionData.getSignature()),peer));
break;
}
// Seems ok - add to unconfirmed pile
transaction.importAsUnconfirmed();
}finally{
blockchainLock.unlock();
}
}catch(DataExceptione){
}catch(DataExceptione){
LOGGER.error(String.format("Repository issue while processing transaction %s from peer %s",Base58.encode(transactionData.getSignature()),peer),e);
LOGGER.error(String.format("Repository issue while processing transaction %s from peer %s",Base58.encode(transactionData.getSignature()),peer),e);
}
}
@ -689,9 +687,6 @@ public class Controller extends Thread {
// Remove peers that have "misbehaved" recently
// Remove peers that have "misbehaved" recently
peers.removeIf(hasPeerMisbehaved);
peers.removeIf(hasPeerMisbehaved);
for(Peerpeer:peers)
LOGGER.debug(String.format("Not up to date due to peer %s at height %d with block sig %s",peer,peer.getPeerData().getLastHeight(),Base58.encode(peer.getPeerData().getLastBlockSignature())));
// If we have any peers left, then they would be candidates for synchronization therefore we're not up to date.
// If we have any peers left, then they would be candidates for synchronization therefore we're not up to date.