diff --git a/simulator/src/main/java/com/hedera/block/simulator/BlockStreamSimulator.java b/simulator/src/main/java/com/hedera/block/simulator/BlockStreamSimulator.java index bf825b104..16c5fb9c9 100644 --- a/simulator/src/main/java/com/hedera/block/simulator/BlockStreamSimulator.java +++ b/simulator/src/main/java/com/hedera/block/simulator/BlockStreamSimulator.java @@ -39,6 +39,7 @@ private BlockStreamSimulator() {} * * @param args the arguments to be passed to the block stream simulator * @throws IOException if an I/O error occurs + * @throws InterruptedException if the thread is interrupted */ public static void main(String[] args) throws IOException, InterruptedException { diff --git a/simulator/src/main/java/com/hedera/block/simulator/BlockStreamSimulatorApp.java b/simulator/src/main/java/com/hedera/block/simulator/BlockStreamSimulatorApp.java index 4e3aab0ef..958d1bd77 100644 --- a/simulator/src/main/java/com/hedera/block/simulator/BlockStreamSimulatorApp.java +++ b/simulator/src/main/java/com/hedera/block/simulator/BlockStreamSimulatorApp.java @@ -60,7 +60,11 @@ public BlockStreamSimulatorApp( delayBetweenBlockItems = blockStreamConfig.delayBetweenBlockItems(); } - /** Starts the block stream simulator. */ + /** + * Starts the block stream simulator. + * + * @throws InterruptedException if the thread is interrupted + */ public void start() throws InterruptedException { int delayMSBetweenBlockItems = delayBetweenBlockItems / 1_000_000; int delayNSBetweenBlockItems = delayBetweenBlockItems % 1_000_000;