Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian committed Apr 26, 2019
2 parents d73f350 + b74ec6a commit 35b7869
Show file tree
Hide file tree
Showing 39 changed files with 182 additions and 154 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [2.3.18] - 2019-04-26

### Fixed

- Reset unfinished round after importing a snapshot ([#2486])
- Update the height of the crypto config manager for milestones in the forger _(only caused an issue for split setups)_ ([#2487])

## [2.3.16] - 2019-04-25

### Fixed

- Initialise the crypto config manager with the latest height on boot ([#2482])

## [2.3.15] - 2019-04-25

Fix release of `2.3.14` due to npm connectivity issues.
Expand Down Expand Up @@ -309,6 +322,8 @@ Closed security vulnerabilities:
- Initial Release

[unreleased]: https://github.com/ARKEcosystem/core/compare/2.3.0...develop
[2.3.18]: https://github.com/ARKEcosystem/core/compare/2.3.16...2.3.18
[2.3.16]: https://github.com/ARKEcosystem/core/compare/2.3.15...2.3.16
[2.3.15]: https://github.com/ARKEcosystem/core/compare/2.3.14...2.3.15
[2.3.14]: https://github.com/ARKEcosystem/core/compare/2.3.12...2.3.14
[2.3.12]: https://github.com/ARKEcosystem/core/compare/2.3.1...2.3.12
Expand Down Expand Up @@ -470,3 +485,6 @@ Closed security vulnerabilities:
[#2464]: https://github.com/ARKEcosystem/core/pull/2464
[#2471]: https://github.com/ARKEcosystem/core/pull/2471
[#2476]: https://github.com/ARKEcosystem/core/pull/2476
[#2482]: https://github.com/ARKEcosystem/core/pull/2482
[#2486]: https://github.com/ARKEcosystem/core/pull/2486
[#2487]: https://github.com/ARKEcosystem/core/pull/2487
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"npmClient": "yarn",
"packages": ["packages/*", "plugins/*"],
"useWorkspaces": true,
"version": "2.3.15"
"version": "2.3.18"
}
14 changes: 7 additions & 7 deletions packages/core-api/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@arkecosystem/core-api",
"description": "Public API for ARK Core",
"version": "2.3.15",
"version": "2.3.18",
"contributors": [
"Kristjan Košič <[email protected]>",
"Brian Faust <[email protected]>"
Expand All @@ -21,12 +21,12 @@
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.3.15",
"@arkecosystem/core-http-utils": "^2.3.15",
"@arkecosystem/core-interfaces": "^2.3.15",
"@arkecosystem/core-transaction-pool": "^2.3.15",
"@arkecosystem/core-utils": "^2.3.15",
"@arkecosystem/crypto": "^2.3.15",
"@arkecosystem/core-container": "^2.3.18",
"@arkecosystem/core-http-utils": "^2.3.18",
"@arkecosystem/core-interfaces": "^2.3.18",
"@arkecosystem/core-transaction-pool": "^2.3.18",
"@arkecosystem/core-utils": "^2.3.18",
"@arkecosystem/crypto": "^2.3.18",
"@arkecosystem/utils": "^0.3.0",
"@faustbrian/dato": "^0.3.0",
"@faustbrian/hapi-version": "^0.2.11",
Expand Down
12 changes: 6 additions & 6 deletions 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": "2.3.15",
"version": "2.3.18",
"contributors": [
"François-Xavier Thoorens <[email protected]>",
"Kristjan Košič <[email protected]>",
Expand All @@ -22,10 +22,10 @@
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.3.15",
"@arkecosystem/core-interfaces": "^2.3.15",
"@arkecosystem/core-utils": "^2.3.15",
"@arkecosystem/crypto": "^2.3.15",
"@arkecosystem/core-container": "^2.3.18",
"@arkecosystem/core-interfaces": "^2.3.18",
"@arkecosystem/core-utils": "^2.3.18",
"@arkecosystem/crypto": "^2.3.18",
"async": "^2.6.2",
"delay": "^4.2.0",
"immutable": "^4.0.0-rc.12",
Expand All @@ -35,7 +35,7 @@
"xstate": "^4.5.0"
},
"devDependencies": {
"@arkecosystem/core-p2p": "^2.3.15",
"@arkecosystem/core-p2p": "^2.3.18",
"@types/async": "^2.4.1",
"@types/lodash.get": "^4.4.6",
"@types/pluralize": "^0.0.29",
Expand Down
6 changes: 3 additions & 3 deletions packages/core-container/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@arkecosystem/core-container",
"description": "Container for ARK Core",
"version": "2.3.15",
"version": "2.3.18",
"contributors": [
"Brian Faust <[email protected]>"
],
Expand All @@ -19,8 +19,8 @@
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-interfaces": "^2.3.15",
"@arkecosystem/crypto": "^2.3.15",
"@arkecosystem/core-interfaces": "^2.3.18",
"@arkecosystem/crypto": "^2.3.18",
"awilix": "^4.2.1",
"delay": "^4.2.0",
"env-paths": "^2.2.0",
Expand Down
12 changes: 6 additions & 6 deletions packages/core-database-postgres/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@arkecosystem/core-database-postgres",
"description": "PostgreSQL integration for ARK Core",
"version": "2.3.15",
"version": "2.3.18",
"contributors": [
"Brian Faust <[email protected]>"
],
Expand All @@ -21,11 +21,11 @@
"copy": "cd src/ && cpy './**/*.sql' --parents ../dist/ && cd ../"
},
"dependencies": {
"@arkecosystem/core-container": "^2.3.15",
"@arkecosystem/core-database": "^2.3.15",
"@arkecosystem/core-interfaces": "^2.3.15",
"@arkecosystem/core-utils": "^2.3.15",
"@arkecosystem/crypto": "^2.3.15",
"@arkecosystem/core-container": "^2.3.18",
"@arkecosystem/core-database": "^2.3.18",
"@arkecosystem/core-interfaces": "^2.3.18",
"@arkecosystem/core-utils": "^2.3.18",
"@arkecosystem/crypto": "^2.3.18",
"@arkecosystem/utils": "^0.3.0",
"@faustbrian/dato": "^0.3.0",
"@types/bluebird": "^3.5.26",
Expand Down
14 changes: 7 additions & 7 deletions packages/core-database/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@arkecosystem/core-database",
"description": "Database Interface for ARK Core",
"version": "2.3.15",
"version": "2.3.18",
"contributors": [
"François-Xavier Thoorens <[email protected]>",
"Kristjan Košič <[email protected]>",
Expand All @@ -22,12 +22,12 @@
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.3.15",
"@arkecosystem/core-event-emitter": "^2.3.15",
"@arkecosystem/core-interfaces": "^2.3.15",
"@arkecosystem/core-transactions": "^2.3.15",
"@arkecosystem/core-utils": "^2.3.15",
"@arkecosystem/crypto": "^2.3.15",
"@arkecosystem/core-container": "^2.3.18",
"@arkecosystem/core-event-emitter": "^2.3.18",
"@arkecosystem/core-interfaces": "^2.3.18",
"@arkecosystem/core-transactions": "^2.3.18",
"@arkecosystem/core-utils": "^2.3.18",
"@arkecosystem/crypto": "^2.3.18",
"@arkecosystem/utils": "^0.3.0",
"lodash.clonedeep": "^4.5.0",
"lodash.compact": "^3.0.1",
Expand Down
6 changes: 6 additions & 0 deletions packages/core-database/src/database-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ export class DatabaseService implements Database.IDatabaseService {
}

public async init(): Promise<void> {
const lastBlock: Interfaces.IBlock = await this.getLastBlock();

if (lastBlock) {
Managers.configManager.setHeight(lastBlock.data.height);
}

await this.loadBlocksFromCurrentRound();
await this.createGenesisBlock();
}
Expand Down
12 changes: 6 additions & 6 deletions packages/core-elasticsearch/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@arkecosystem/core-elasticsearch",
"description": "A powerful Elasticsearch integration for ARK Core",
"version": "2.3.15",
"version": "2.3.18",
"contributors": [
"Brian Faust <[email protected]>"
],
Expand All @@ -18,11 +18,11 @@
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.3.15",
"@arkecosystem/core-event-emitter": "^2.3.15",
"@arkecosystem/core-http-utils": "^2.3.15",
"@arkecosystem/core-interfaces": "^2.3.15",
"@arkecosystem/crypto": "^2.3.15",
"@arkecosystem/core-container": "^2.3.18",
"@arkecosystem/core-event-emitter": "^2.3.18",
"@arkecosystem/core-http-utils": "^2.3.18",
"@arkecosystem/core-interfaces": "^2.3.18",
"@arkecosystem/crypto": "^2.3.18",
"boom": "^7.3.0",
"elasticsearch": "^15.4.1",
"fs-extra": "^7.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/core-error-tracker-airbrake/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@arkecosystem/core-error-tracker-airbrake",
"description": "Airbrake error tracker integration for ARK Core.",
"version": "2.3.15",
"version": "2.3.18",
"contributors": [
"Brian Faust <[email protected]>"
],
Expand All @@ -18,7 +18,7 @@
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.3.15",
"@arkecosystem/core-container": "^2.3.18",
"airbrake-js": "^1.6.6"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core-error-tracker-bugsnag/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@arkecosystem/core-error-tracker-bugsnag",
"description": "Bugsnag error tracker integration for ARK Core.",
"version": "2.3.15",
"version": "2.3.18",
"contributors": [
"Brian Faust <[email protected]>"
],
Expand All @@ -18,7 +18,7 @@
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.3.15",
"@arkecosystem/core-container": "^2.3.18",
"@bugsnag/js": "^6.1.0"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core-error-tracker-raygun/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@arkecosystem/core-error-tracker-raygun",
"description": "Raygun error tracker integration for ARK Core.",
"version": "2.3.15",
"version": "2.3.18",
"contributors": [
"Brian Faust <[email protected]>"
],
Expand All @@ -18,7 +18,7 @@
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.3.15",
"@arkecosystem/core-container": "^2.3.18",
"raygun": "^0.10.1"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core-error-tracker-rollbar/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@arkecosystem/core-error-tracker-rollbar",
"description": "Rollbar error tracker integration for ARK Core.",
"version": "2.3.15",
"version": "2.3.18",
"contributors": [
"Brian Faust <[email protected]>"
],
Expand All @@ -18,7 +18,7 @@
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.3.15",
"@arkecosystem/core-container": "^2.3.18",
"rollbar": "^2.6.0"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core-error-tracker-sentry/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@arkecosystem/core-error-tracker-sentry",
"description": "Sentry error tracker integration for ARK Core.",
"version": "2.3.15",
"version": "2.3.18",
"contributors": [
"Brian Faust <[email protected]>"
],
Expand All @@ -18,7 +18,7 @@
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.3.15",
"@arkecosystem/core-container": "^2.3.18",
"@sentry/node": "^5.1.0"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/core-event-emitter/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@arkecosystem/core-event-emitter",
"description": "Event Manager for ARK Core",
"version": "2.3.15",
"version": "2.3.18",
"contributors": [
"Brian Faust <[email protected]>"
],
Expand Down
12 changes: 6 additions & 6 deletions packages/core-forger/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@arkecosystem/core-forger",
"description": "Forger for ARK Core",
"version": "2.3.15",
"version": "2.3.18",
"contributors": [
"François-Xavier Thoorens <[email protected]>",
"Kristjan Košič <[email protected]>",
Expand All @@ -21,11 +21,11 @@
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.3.15",
"@arkecosystem/core-interfaces": "^2.3.15",
"@arkecosystem/core-p2p": "^2.3.15",
"@arkecosystem/core-utils": "^2.3.15",
"@arkecosystem/crypto": "^2.3.15",
"@arkecosystem/core-container": "^2.3.18",
"@arkecosystem/core-interfaces": "^2.3.18",
"@arkecosystem/core-p2p": "^2.3.18",
"@arkecosystem/core-utils": "^2.3.18",
"@arkecosystem/crypto": "^2.3.18",
"delay": "^4.2.0",
"lodash.isempty": "^4.4.0",
"lodash.uniq": "^4.5.0",
Expand Down
4 changes: 3 additions & 1 deletion packages/core-forger/src/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,14 @@ export class ForgerManager {
round: P2P.ICurrentRound,
networkState: P2P.INetworkState,
): Promise<void> {
Managers.configManager.setHeight(networkState.nodeHeight);

const transactions: Interfaces.ITransactionData[] = await this.getTransactionsForForging();

const block: Interfaces.IBlock = delegate.forge(transactions, {
previousBlock: {
id: networkState.lastBlockId,
idHex: Managers.configManager.getMilestone(networkState.nodeHeight).block.idFullSha256
idHex: Managers.configManager.getMilestone().block.idFullSha256
? networkState.lastBlockId
: Blocks.Block.toBytesHex(networkState.lastBlockId),
height: networkState.nodeHeight,
Expand Down
8 changes: 4 additions & 4 deletions packages/core-http-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@arkecosystem/core-http-utils",
"description": "Http Utilities for ARK Core",
"version": "2.3.15",
"version": "2.3.18",
"contributors": [
"Brian Faust <[email protected]>"
],
Expand All @@ -18,9 +18,9 @@
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.3.15",
"@arkecosystem/core-utils": "^2.3.15",
"@arkecosystem/crypto": "^2.3.15",
"@arkecosystem/core-container": "^2.3.18",
"@arkecosystem/core-utils": "^2.3.18",
"@arkecosystem/crypto": "^2.3.18",
"boom": "^7.3.0",
"expand-home-dir": "^0.0.3",
"good": "^8.1.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/core-interfaces/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@arkecosystem/core-interfaces",
"description": "Interface types for essential ARK Core modules",
"version": "2.3.15",
"version": "2.3.18",
"contributors": [
"François-Xavier Thoorens <[email protected]>",
"Kristjan Košič <[email protected]>",
Expand All @@ -23,7 +23,7 @@
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/crypto": "^2.3.15",
"@arkecosystem/crypto": "^2.3.18",
"@faustbrian/dato": "^0.3.0",
"awilix": "^4.2.1"
},
Expand Down
Loading

0 comments on commit 35b7869

Please sign in to comment.