From 62ce1afdcaf9feddb908d52f374ae2700f843902 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Thu, 21 May 2026 23:29:48 +0200 Subject: [PATCH] smite: change MineBlocks(0) panic into noop --- smite/src/bitcoin.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/smite/src/bitcoin.rs b/smite/src/bitcoin.rs index 83a7848..1848a9f 100644 --- a/smite/src/bitcoin.rs +++ b/smite/src/bitcoin.rs @@ -70,6 +70,9 @@ impl BitcoinCli { /// If the `bitcoin-cli -generate` command fails to execute or returns /// a non-success exit status. pub fn mine_blocks(&self, num_blocks: u8) { + if num_blocks == 0 { + return; + } let mine_out = self .run() .arg("-generate")