Propagate new block messages to other clients in a separate thread, not the netty processing thread. (#928)

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
pull/2/head
Adrian Sutton 6 years ago committed by GitHub
parent 5effe956ee
commit eb3fca256c
  1. 2
      ethereum/eth/src/main/java/tech/pegasys/pantheon/ethereum/eth/sync/BlockPropagationManager.java

@ -293,7 +293,7 @@ public class BlockPropagationManager<C> {
return CompletableFuture.completedFuture(block);
}
validateAndBroadcastBlock(block);
ethContext.getScheduler().scheduleSyncWorkerTask(() -> validateAndBroadcastBlock(block));
// Import block
final PersistBlockTask<C> importTask =

Loading…
Cancel
Save