Merge pull request #85 from gslandtreter/fix-regtest-startup

Fixed regression introduced by #51
This commit is contained in:
softsimon 2024-04-20 13:56:34 +07:00 committed by GitHub
commit 8e07f9fd03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -341,10 +341,10 @@ impl Daemon {
let mempool = daemon.getmempoolinfo()?;
let ibd_done = if network.is_regtest() {
info.blocks == 0 && info.headers == 0
info.blocks == info.headers
} else {
false
} || !info.initialblockdownload.unwrap_or(false);
!info.initialblockdownload.unwrap_or(false)
};
if mempool.loaded && ibd_done && info.blocks == info.headers {
break;