Merge pull request #3578 from mempool/nymkappa/revert-undocumented-fast-forward

Revert regression introduced in #1320
This commit is contained in:
softsimon 2023-03-26 22:10:23 +09:00 committed by GitHub
commit fbfc0ca296

View File

@ -558,7 +558,7 @@ class Blocks {
}
while (this.currentBlockHeight < blockHeightTip) {
if (this.currentBlockHeight < blockHeightTip - config.MEMPOOL.INITIAL_BLOCKS_AMOUNT) {
if (this.currentBlockHeight === 0) {
this.currentBlockHeight = blockHeightTip;
} else {
this.currentBlockHeight++;