script: improve perf of getScripthash.
This commit is contained in:
parent
49154be76d
commit
140eece7dd
@ -2025,7 +2025,7 @@ Script.prototype.getScripthash = function getScripthash() {
|
||||
if (!this.isScripthash())
|
||||
return null;
|
||||
|
||||
return this.raw.slice(2, 22);
|
||||
return this.getData(1);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user