BlockPair bp;
synchronized (this) {
Logger.info("Removing block " + block + " from pending queue");
bp = (BlockPair) _pending.removeFirst();
}
OutputStreamBlockTransmitter osbt = new OutputStreamBlockTransmitter(bp.getPartiallyReceivedBlock(), _os);
try {
Logger.info("Starting transfer of block " + block);
osbt.start();
Logger.info("Completed transfer of block " + block);
// Confirm that the hash matches
VeryLongInteger retrievedHash = (VeryLongInteger) _retrievedHashes.get(new Integer(block));
if (retrievedHash != null) {
Logger.info("Verifying hash for block "+block);