From 3d7baf961b23d5ba8757375096d15a2ea90367af Mon Sep 17 00:00:00 2001 From: supaiku <1311798+supaiku0@users.noreply.github.com> Date: Mon, 10 Dec 2018 23:28:38 +0100 Subject: [PATCH] fix(core-blockchain): reset last downloaded block (#1692) * fix(core-blockchain): reset lastDownloadedBlock * chore: changelog --- packages/core-blockchain/CHANGELOG.md | 6 ++++++ packages/core-blockchain/lib/blockchain.js | 2 +- packages/core-blockchain/package.json | 2 +- packages/core/CHANGELOG.md | 6 ++++++ packages/core/package.json | 2 +- 5 files changed, 15 insertions(+), 3 deletions(-) diff --git a/packages/core-blockchain/CHANGELOG.md b/packages/core-blockchain/CHANGELOG.md index a610e92d4e..b7adcfa807 100644 --- a/packages/core-blockchain/CHANGELOG.md +++ b/packages/core-blockchain/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## Unreleased +## 0.2.1 - 2018-12-10 + +### Fixed + +- Reset last downloaded block when block is discarded + ## 0.2.0 - 2018-12-03 ### Added diff --git a/packages/core-blockchain/lib/blockchain.js b/packages/core-blockchain/lib/blockchain.js index a3d691fcd9..4fa4f868c4 100644 --- a/packages/core-blockchain/lib/blockchain.js +++ b/packages/core-blockchain/lib/blockchain.js @@ -408,7 +408,7 @@ module.exports = class Blockchain { ) this.transactionPool.purgeSendersWithInvalidTransactions(block) - + this.state.lastDownloadedBlock = this.state.getLastBlock() return callback() } diff --git a/packages/core-blockchain/package.json b/packages/core-blockchain/package.json index 9c60153779..ed37563365 100644 --- a/packages/core-blockchain/package.json +++ b/packages/core-blockchain/package.json @@ -1,7 +1,7 @@ { "name": "@arkecosystem/core-blockchain", "description": "Blockchain Manager for Ark Core", - "version": "0.2.0", + "version": "0.2.1", "contributors": [ "François-Xavier Thoorens ", "Kristjan Košič ", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 3ddcaf906b..89ec743f2d 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## Unreleased +## 2.0.14 - 2018-12-10 + +### Fixed + +- Reset last downloaded block when block is discarded + ## 2.0.13 - 2018-12-07 ### Fixed diff --git a/packages/core/package.json b/packages/core/package.json index 7a86715e46..bbdd88914f 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,7 @@ { "name": "@arkecosystem/core", "description": "Core of the Ark Blockchain", - "version": "2.0.13", + "version": "2.0.14", "contributors": [ "François-Xavier Thoorens ", "Kristjan Košič ",