bip152: minor.
This commit is contained in:
parent
d357ecb159
commit
ec876215a6
@ -14,7 +14,7 @@ const assert = require('assert');
|
||||
const bio = require('bufio');
|
||||
const consensus = require('../protocol/consensus');
|
||||
const sha256 = require('bcrypto/lib/sha256');
|
||||
const siphash256 = require('bcrypto/lib/siphash').siphash256;
|
||||
const {siphash} = require('bcrypto/lib/siphash');
|
||||
const AbstractBlock = require('../primitives/abstractblock');
|
||||
const TX = require('../primitives/tx');
|
||||
const Headers = require('../primitives/headers');
|
||||
@ -369,7 +369,7 @@ class CompactBlock extends AbstractBlock {
|
||||
if (typeof hash === 'string')
|
||||
hash = Buffer.from(hash, 'hex');
|
||||
|
||||
const [hi, lo] = siphash256(hash, this.sipKey);
|
||||
const [hi, lo] = siphash(hash, this.sipKey);
|
||||
|
||||
return (hi & 0xffff) * 0x100000000 + (lo >>> 0);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user