Merge pull request #529 from tuxcanfly/test-fix-pow
test: fix get block proof equivalent time
This commit is contained in:
commit
f24a9b674f
@ -82,7 +82,7 @@ describe('Difficulty', function() {
|
||||
const p2 = blocks[random(blocks.length)];
|
||||
|
||||
const tdiff = chain.getProofTime(p1, p2);
|
||||
assert.strictEqual(tdiff, p1.time - p2.time);
|
||||
assert.ok(tdiff === p1.time - p2.time);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user