This repository was archived by the owner on Apr 6, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ Temporary Items
32
32
logs
33
33
* .log
34
34
npm-debug.log *
35
+ package-lock.json
35
36
36
37
# Runtime data
37
38
pids
@@ -43,6 +44,7 @@ lib-cov
43
44
44
45
# Coverage directory used by tools like istanbul
45
46
coverage
47
+ .nyc_output
46
48
47
49
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
48
50
.grunt
Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ const BN = ethUtil.BN
19
19
const rlp = ethUtil . rlp
20
20
21
21
// geth compatible db keys
22
- const headHeaderKey = 'LastHeader' // current canonical head for light sync
23
- const headBlockKey = 'LastBlock' // current canonical head for full sync
24
- const headerPrefix = new Buffer ( 'h' ) // headerPrefix + number + hash -> header
25
- const tdSuffix = new Buffer ( 't' ) // headerPrefix + number + hash + tdSuffix -> td
26
- const numSuffix = new Buffer ( 'n' ) // headerPrefix + number + numSuffix -> hash
22
+ const headHeaderKey = 'LastHeader' // current canonical head for light sync
23
+ const headBlockKey = 'LastBlock' // current canonical head for full sync
24
+ const headerPrefix = new Buffer ( 'h' ) // headerPrefix + number + hash -> header
25
+ const tdSuffix = new Buffer ( 't' ) // headerPrefix + number + hash + tdSuffix -> td
26
+ const numSuffix = new Buffer ( 'n' ) // headerPrefix + number + numSuffix -> hash
27
27
const blockHashPrefix = new Buffer ( 'H' ) // blockHashPrefix + hash -> number
28
- const bodyPrefix = new Buffer ( 'b' ) // bodyPrefix + number + hash -> block body
28
+ const bodyPrefix = new Buffer ( 'b' ) // bodyPrefix + number + hash -> block body
29
29
30
30
// utility functions
31
31
const bufBE8 = n => n . toBuffer ( 'be' , 8 ) // convert BN to big endian Buffer
Original file line number Diff line number Diff line change 4
4
"description" : " A module to store and interact with blocks" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
- "coverage" : " istanbul cover ./test/index.js " ,
8
- "coveralls" : " npm run coverage && coveralls <coverage /lcov.info" ,
7
+ "coverage" : " nyc npm run test && nyc report --reporter=text-lcov > .nyc_output/lcov.info " ,
8
+ "coveralls" : " npm run coverage && coveralls <.nyc_output /lcov.info" ,
9
9
"lint" : " standard" ,
10
10
"test" : " tape ./test/index.js"
11
11
},
27
27
"async" : " ^2.1.2" ,
28
28
"ethashjs" : " ~0.0.7" ,
29
29
"ethereumjs-block" : " ~1.7.0" ,
30
- "ethereumjs-util" : " ~5.1 .0" ,
30
+ "ethereumjs-util" : " ~5.2 .0" ,
31
31
"flow-stoplight" : " ^1.0.0" ,
32
32
"levelup" : " ^1.3.0" ,
33
33
"memdown" : " ^1.1.0" ,
37
37
},
38
38
"devDependencies" : {
39
39
"coveralls" : " ^3.0.0" ,
40
- "istanbul " : " ^0.4.2 " ,
41
- "standard" : " ^10 .0.0-beta.0 " ,
40
+ "nyc " : " ^11.8.0 " ,
41
+ "standard" : " ^11 .0.1 " ,
42
42
"tape" : " ^4.2.1"
43
43
}
44
44
}
You can’t perform that action at this time.
0 commit comments