Browse Source

add missing network parameter (required for support of testnet)

umbrel
kenshin-samourai 5 years ago
parent
commit
db2fed9614
  1. 2
      lib/remote-importer/local-indexer-wrapper.js

2
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')
}

Loading…
Cancel
Save