Skip to content

Commit

Permalink
fix(core-blockchain): reset last downloaded block (#1692)
Browse files Browse the repository at this point in the history
* fix(core-blockchain): reset lastDownloadedBlock

* chore: changelog
  • Loading branch information
spkjp authored Dec 10, 2018
1 parent 5a08db5 commit 3d7baf9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions packages/core-blockchain/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/core-blockchain/lib/blockchain.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ module.exports = class Blockchain {
)

this.transactionPool.purgeSendersWithInvalidTransactions(block)

this.state.lastDownloadedBlock = this.state.getLastBlock()
return callback()
}

Expand Down
2 changes: 1 addition & 1 deletion packages/core-blockchain/package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"Kristjan Košič <[email protected]>",
Expand Down
6 changes: 6 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"Kristjan Košič <[email protected]>",
Expand Down

0 comments on commit 3d7baf9

Please sign in to comment.