From 8c7b8b08513c24493b878fb0fa266b41f4b2939c Mon Sep 17 00:00:00 2001 From: kenshin-samourai Date: Thu, 7 Nov 2019 22:29:56 +0100 Subject: [PATCH] add missing network parameter --- lib/remote-importer/local-indexer-wrapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/remote-importer/local-indexer-wrapper.js b/lib/remote-importer/local-indexer-wrapper.js index 8891608..9fcc37b 100644 --- a/lib/remote-importer/local-indexer-wrapper.js +++ b/lib/remote-importer/local-indexer-wrapper.js @@ -38,7 +38,7 @@ class LocalIndexerWrapper extends Wrapper { * @returns {string} returns the script hash associated to the address */ _getScriptHash(address) { - const bScriptPubKey = bitcoin.address.toOutputScript(address) + const bScriptPubKey = bitcoin.address.toOutputScript(address, activeNet) const bScriptHash = bitcoin.crypto.sha256(bScriptPubKey) return util.reverseBuffer(bScriptHash).toString('hex') }