script: improve perf of getScripthash.

This commit is contained in:
Christopher Jeffrey 2017-08-25 20:54:56 -07:00
parent 49154be76d
commit 140eece7dd
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -2025,7 +2025,7 @@ Script.prototype.getScripthash = function getScripthash() {
if (!this.isScripthash())
return null;
return this.raw.slice(2, 22);
return this.getData(1);
};
/**