From 40a42214d4e52c241cb4ca283a12341a6e849c6e Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Wed, 5 Aug 2020 13:56:13 +0100 Subject: [PATCH] fix: remove redundant multihashes dep (#66) The multihashes module is bundled with multihashing-async so no need to depend on it as well. --- package.json | 1 - src/util.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index ce994a3..f983a67 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,6 @@ "buffer": "^5.6.0", "cids": "^1.0.0", "multicodec": "^2.0.0", - "multihashes": "^3.0.0", "multihashing-async": "^2.0.0", "uint8arrays": "^1.0.0" }, diff --git a/src/util.js b/src/util.js index 9db5ebc..6883548 100644 --- a/src/util.js +++ b/src/util.js @@ -3,8 +3,8 @@ const BitcoinjsBlock = require('bitcoinjs-lib').Block const CID = require('cids') const multicodec = require('multicodec') -const multihashes = require('multihashes') const multihashing = require('multihashing-async') +const multihashes = multihashing.multihash const { Buffer } = require('buffer') const BITCOIN_BLOCK_HEADER_SIZE = 80