Skip to content

Commit

Permalink
script: improve perf of getScripthash.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Aug 26, 2017
1 parent 49154be commit 140eece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/script/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2025,7 +2025,7 @@ Script.prototype.getScripthash = function getScripthash() {
if (!this.isScripthash())
return null;

return this.raw.slice(2, 22);
return this.getData(1);
};

/**
Expand Down

0 comments on commit 140eece

Please sign in to comment.