Commit merged as part of #51 introduced a regression that prevents the daemon from breaking out its startup wait loop when running in regtest mode, in scenarios where the blockchain already contains 1 or more blocks (apart from genesis).
This commit fixes the regression by only checking the equivalence between blocks and headers as the wait condition when running in regtest mode.
Commit merged as part of #51 introduced a regression that prevents the daemon from breaking out its startup wait loop when running in
regtest
mode, in scenarios where the blockchain already contains 1 or more blocks (apart from genesis).This commit fixes the regression by only checking the equivalence between blocks and headers as the wait condition when running in
regtest
mode.