From 1286ad3ce543f1633b2fa16fca07cb28ebb0e326 Mon Sep 17 00:00:00 2001 From: Adrian Sutton Date: Thu, 21 Feb 2019 07:05:57 +1000 Subject: [PATCH] Propagate new block messages to other clients in a separate thread, not the netty processing thread. (#928) --- .../pantheon/ethereum/eth/sync/BlockPropagationManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereum/eth/src/main/java/tech/pegasys/pantheon/ethereum/eth/sync/BlockPropagationManager.java b/ethereum/eth/src/main/java/tech/pegasys/pantheon/ethereum/eth/sync/BlockPropagationManager.java index 4695039fab..4be7e72939 100644 --- a/ethereum/eth/src/main/java/tech/pegasys/pantheon/ethereum/eth/sync/BlockPropagationManager.java +++ b/ethereum/eth/src/main/java/tech/pegasys/pantheon/ethereum/eth/sync/BlockPropagationManager.java @@ -293,7 +293,7 @@ CompletableFuture importOrSavePendingBlock(final Block block) { return CompletableFuture.completedFuture(block); } - validateAndBroadcastBlock(block); + ethContext.getScheduler().scheduleSyncWorkerTask(() -> validateAndBroadcastBlock(block)); // Import block final PersistBlockTask importTask =