Commit graph

17 commits

Author SHA1 Message Date
junderw
2eb9534939
Move Block Class from ES6 PR 2018-12-29 15:25:00 +09:00
junderw
d684a6b2ef
Fix compiler errors, tests, and scripts 2018-12-29 15:20:37 +09:00
Daniel Cousens
16195cc6ce explicitly import mocha variables 2018-07-23 17:45:01 +10:00
Daniel Cousens
a5db0a4e44 sed -i 's/ var / const /', with const->let fixes 2018-06-25 18:26:23 +10:00
Daniel Cousens
91b8823aa8 sed -i 's/^var /const /' 2018-06-25 16:25:46 +10:00
Daniel Cousens
f3d0dddc5a block: add byteLength 2017-04-18 13:46:30 +10:00
Daniel Cousens
e205b99180 tests/block: check that block.transactions exists and cleanup 2017-04-18 13:46:30 +10:00
Thomas Kerin
7b1167708a Transaction and block versions are signed integers 2016-10-13 09:29:03 +11:00
Daniel Cousens
d58e09a3a7 Block: add checkMerkleRoot 2016-05-05 16:51:33 +10:00
Daniel Cousens
e4ba88e54f block: rename verifyPow to checkProofOfWork 2016-01-04 12:49:33 +11:00
Daniel Cousens
86b51b2d62 add Block.calculateTarget, use Buffer comparison rather than bigi 2016-01-04 12:49:33 +11:00
Daniel Cousens
26ccb43047 block: add Block.prototype.verifyPow 2016-01-04 12:49:33 +11:00
Daniel Cousens
15227d39bf tests: add more test fixtures for blocks 2016-01-04 12:49:33 +11:00
Daniel Cousens
ec9cea0cf1 tests: use strictEqual always 2015-05-07 11:29:20 +10:00
Daniel Cousens
399803affa use standardjs formatting 2015-02-24 12:45:38 +11:00
Daniel Cousens
9897fa2876 block: adds getUTCDate function 2014-11-28 10:35:59 +11:00
Daniel Cousens
c0c47f076a add block.js and tests 2014-11-28 10:35:53 +11:00