Skip to content
This repository was archived by the owner on Apr 6, 2020. It is now read-only.

Update dependencies #49

Merged
merged 3 commits into from
May 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Temporary Items
logs
*.log
npm-debug.log*
package-lock.json

# Runtime data
pids
Expand All @@ -43,6 +44,7 @@ lib-cov

# Coverage directory used by tools like istanbul
coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
Expand Down
12 changes: 6 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ const BN = ethUtil.BN
const rlp = ethUtil.rlp

// geth compatible db keys
const headHeaderKey = 'LastHeader' // current canonical head for light sync
const headBlockKey = 'LastBlock' // current canonical head for full sync
const headerPrefix = new Buffer('h') // headerPrefix + number + hash -> header
const tdSuffix = new Buffer('t') // headerPrefix + number + hash + tdSuffix -> td
const numSuffix = new Buffer('n') // headerPrefix + number + numSuffix -> hash
const headHeaderKey = 'LastHeader' // current canonical head for light sync
const headBlockKey = 'LastBlock' // current canonical head for full sync
const headerPrefix = new Buffer('h') // headerPrefix + number + hash -> header
const tdSuffix = new Buffer('t') // headerPrefix + number + hash + tdSuffix -> td
const numSuffix = new Buffer('n') // headerPrefix + number + numSuffix -> hash
const blockHashPrefix = new Buffer('H') // blockHashPrefix + hash -> number
const bodyPrefix = new Buffer('b') // bodyPrefix + number + hash -> block body
const bodyPrefix = new Buffer('b') // bodyPrefix + number + hash -> block body

// utility functions
const bufBE8 = n => n.toBuffer('be', 8) // convert BN to big endian Buffer
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "A module to store and interact with blocks",
"main": "index.js",
"scripts": {
"coverage": "istanbul cover ./test/index.js",
"coveralls": "npm run coverage && coveralls <coverage/lcov.info",
"coverage": "nyc npm run test && nyc report --reporter=text-lcov > .nyc_output/lcov.info",
"coveralls": "npm run coverage && coveralls <.nyc_output/lcov.info",
"lint": "standard",
"test": "tape ./test/index.js"
},
Expand All @@ -27,7 +27,7 @@
"async": "^2.1.2",
"ethashjs": "~0.0.7",
"ethereumjs-block": "~1.7.0",
"ethereumjs-util": "~5.1.0",
"ethereumjs-util": "~5.2.0",
"flow-stoplight": "^1.0.0",
"levelup": "^1.3.0",
"memdown": "^1.1.0",
Expand All @@ -37,8 +37,8 @@
},
"devDependencies": {
"coveralls": "^3.0.0",
"istanbul": "^0.4.2",
"standard": "^10.0.0-beta.0",
"nyc": "^11.8.0",
"standard": "^11.0.1",
"tape": "^4.2.1"
}
}