From ec876215a60df363faedaafa50742bdf1e2f0af7 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 30 Dec 2017 19:55:32 -0800 Subject: [PATCH] bip152: minor. --- lib/net/bip152.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/net/bip152.js b/lib/net/bip152.js index af512fde..16659f8b 100644 --- a/lib/net/bip152.js +++ b/lib/net/bip152.js @@ -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); }