Skip to content

Commit

Permalink
Merge pull request #85 from gslandtreter/fix-regtest-startup
Browse files Browse the repository at this point in the history
Fixed regression introduced by #51
  • Loading branch information
softsimon authored Apr 20, 2024
2 parents e6b0d9f + 1abe9c4 commit 8e07f9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8e07f9f

Please sign in to comment.