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