mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-11-04 11:06:44 +00:00
make isScript check a little safer
This commit is contained in:
parent
75701c725d
commit
601c11bd50
1 changed files with 4 additions and 0 deletions
|
@ -109,6 +109,10 @@ public class ScriptChunk {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isSignature() || isPubKey()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Script script = new Script(data);
|
Script script = new Script(data);
|
||||||
//Flaky: Test if contains a non-zero opcode, otherwise not a script
|
//Flaky: Test if contains a non-zero opcode, otherwise not a script
|
||||||
|
|
Loading…
Reference in a new issue