Skip to content

Commit

Permalink
Merge pull request #1628 from ArkEcosystem/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian authored Dec 4, 2018
2 parents 4efbde7 + e41269c commit 6c1dc3e
Show file tree
Hide file tree
Showing 37 changed files with 47 additions and 555 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ _Put an `x` in the boxes that apply and remove the rest of them: keep this PR as
_Put an `x` in the boxes that apply and remove this text and the rest of them. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code._
-->

- [ ] I have read the [CONTRIBUTING](https://docs.ark.io/developers/guidelines/contributing.html) documentation
- [ ] I have read the [CONTRIBUTING](https://docs.ark.io/guidebook/contribution-guidelines/contributing.html) documentation
- [ ] Lint and unit tests pass locally with my changes
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] I have added necessary documentation (if appropriate)
Expand Down
10 changes: 10 additions & 0 deletions packages/core-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## Unreleased

## 0.2.1 - 2018-12-04

### Added

- Allow block display via height in v2 API

### Fixed

- Return the correct total count for `/api/v2/peers`

## 0.2.0 - 2018-12-03

### Added
Expand Down
22 changes: 0 additions & 22 deletions packages/core-api/jsdoc.json

This file was deleted.

10 changes: 7 additions & 3 deletions packages/core-api/lib/repositories/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,18 @@ class BlocksRepository extends Repository {

/**
* Get a block.
* @param {Number} id
* @param {Number} value
* @return {Object}
*/
async findById(id) {
async findById(value) {
const query = this.query
.select()
.from(this.query)
.where(this.query.id.equals(id))
.where(this.query.id.equals(value))

if (Number.isSafeInteger(value)) {
query.or(this.query.height.equals(value))
}

return this._find(query)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core-api/lib/versions/2/handlers/peers.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ exports.index = {

return utils.toPagination(
request,
{ rows: result, count: result.length },
{ rows: result, count: allPeers.length },
'peer',
)
},
Expand Down
2 changes: 1 addition & 1 deletion 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": "0.2.0",
"version": "0.2.1",
"contributors": [
"Kristjan Košič <kristjan@ark.io>",
"Brian Faust <brian@ark.io>"
Expand Down
8 changes: 4 additions & 4 deletions packages/core-blockchain/__tests__/blockchain.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ describe('Blockchain', () => {
tx => tx.type !== 2,
)

await blockchain.transactionPool.flush()
blockchain.transactionPool.flush()
await blockchain.postTransactions(transactionsWithoutType2, false)
const transactions = blockchain.transactionPool.getTransactions(0, 200)

Expand All @@ -159,7 +159,7 @@ describe('Blockchain', () => {
transactionsWithoutType2.map(transaction => transaction.serialized),
)

await blockchain.transactionPool.flush()
blockchain.transactionPool.flush()
})
})

Expand Down Expand Up @@ -321,7 +321,7 @@ describe('Blockchain', () => {
tx => tx.type !== 2,
)

await blockchain.transactionPool.flush()
blockchain.transactionPool.flush()
await blockchain.postTransactions(transactionsWithoutType2, false)
const unconfirmedTransactions = blockchain.getUnconfirmedTransactions(200)

Expand All @@ -333,7 +333,7 @@ describe('Blockchain', () => {
transactionsWithoutType2.map(transaction => transaction.serialized),
)

await blockchain.transactionPool.flush()
blockchain.transactionPool.flush()
})
})

Expand Down
22 changes: 0 additions & 22 deletions packages/core-blockchain/jsdoc.json

This file was deleted.

22 changes: 0 additions & 22 deletions packages/core-config/jsdoc.json

This file was deleted.

22 changes: 0 additions & 22 deletions packages/core-container/jsdoc.json

This file was deleted.

22 changes: 0 additions & 22 deletions packages/core-database-postgres/jsdoc.json

This file was deleted.

22 changes: 0 additions & 22 deletions packages/core-database/jsdoc.json

This file was deleted.

22 changes: 0 additions & 22 deletions packages/core-deployer/jsdoc.json

This file was deleted.

22 changes: 0 additions & 22 deletions packages/core-elasticsearch/jsdoc.json

This file was deleted.

2 changes: 1 addition & 1 deletion 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": "0.2.0",
"version": "0.1.0",
"contributors": [
"Brian Faust <brian@ark.io>"
],
Expand Down
22 changes: 0 additions & 22 deletions packages/core-error-tracker-bugsnag/jsdoc.json

This file was deleted.

2 changes: 1 addition & 1 deletion 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": "0.2.0",
"version": "0.1.0",
"contributors": [
"Brian Faust <brian@ark.io>"
],
Expand Down
2 changes: 1 addition & 1 deletion 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": "0.2.0",
"version": "0.1.0",
"contributors": [
"Brian Faust <brian@ark.io>"
],
Expand Down
22 changes: 0 additions & 22 deletions packages/core-event-emitter/jsdoc.json

This file was deleted.

22 changes: 0 additions & 22 deletions packages/core-forger/jsdoc.json

This file was deleted.

Loading

0 comments on commit 6c1dc3e

Please sign in to comment.