From 3f750cf8ceef2826ac1a59e8488f3f4a952ec70d Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sat, 25 Jul 2020 21:14:26 +0300 Subject: [PATCH] Don't wait for IBD on regtest --- src/daemon.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/daemon.rs b/src/daemon.rs index 5b955d3..8cfd30d 100644 --- a/src/daemon.rs +++ b/src/daemon.rs @@ -348,6 +348,9 @@ impl Daemon { if !info.initialblockdownload { break; } + if network == Network::Regtest && info.headers == info.blocks { + break; + } warn!( "wait until IBD is over: headers={} blocks={} progress={}", info.headers, info.blocks, info.verificationprogress