make isScript check a little safer

This commit is contained in:
Craig Raw 2020-06-14 13:59:19 +02:00
parent 75701c725d
commit 601c11bd50

View file

@ -109,6 +109,10 @@ public class ScriptChunk {
return false;
}
if(isSignature() || isPubKey()) {
return false;
}
try {
Script script = new Script(data);
//Flaky: Test if contains a non-zero opcode, otherwise not a script