-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core-blockchain): discard blocks containing forged tx and stop pr…
…ocess queue on fork (#1732) * refactor: remove misleading log output * refactor: move block exception check * fix: reset queue at the beginning of fork recovery * refactor: drop process queue after disregarding unchained block * fix: update blocks from current round after recovery * fix: check if received block contains forged transactions * refactor: only fork when downloaded block cannot be chained with last accepted block * refactor: only check forged transactions if it is a chained block * test: fix * fix(core-p2p): call updateNetworkStatusIfNotEnoughPeers in the correct context (#1737) * refactor(core-p2p): replace the network update timeout with a period check (#1738) * refactor(core-p2p): replace the network update timeout with a period check * refactor(core-p2p): only sett the last network timeout if it is not set or expired * chore(core-p2p): remove pTimeout dependency * refactor: change name and make sure the next network update is scheduled * chore(package): update better-sqlite3 to version 5.2.0 (#1739) * test(core-utils): increase coverage (#1742) * test(core-debugger-cli): increase coverage (#1743) * chore: update @babel/core and @babel/preset-env (#1740) * chore(package): update @babel/core to version 7.2.2 * chore(package): update @babel/preset-env to version 7.2.0 * chore(package): update lockfile yarn.lock * chore: update yarn.lock * test(crypto): increase identity coverage (#1744) * test(crypto): increase handler coverage (#1745) * test(crypto): increase handler coverage (#1746) * test(crypto): increase multi signature/payment coverage (#1747) * docs: changelog and readme formatting (#1824) * refactor: rename resetQueue * fix: only care about missing blocks when process queue is empty * refactor: reword log message * refactor: move fork into function * fix: accept internal blocks even if in fork state * fix: dont show peer tracker after init * refactor: remove useless forked flag
- Loading branch information
Showing
9 changed files
with
128 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.