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 3f8e91bd46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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++;