You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Let's do a quick sanity check against the Script Interpreter
//This is a useful example of how to test your own Locking/Unlocking Scripts
try {
Interpreter interp = new Interpreter();
interp.correctlySpends(transactionToSign.getInputs().get(0).getScriptSig(), fundingOutput.getScript(), aliceTx, 0, verifyFlags);
}catch(Exception ex){
System.out.println(ex.getMessage());
}
the error message is :org.twostack.bitcoin4j.script.ScriptException: ForkID is not enabled, yet the flag is set
at org.twostack.bitcoin4j.script.Interpreter.executeCheckSig(Interpreter.java:1221)
at org.twostack.bitcoin4j.script.Interpreter.executeScript(Interpreter.java:952)
at org.twostack.bitcoin4j.script.Interpreter.correctlySpends(Interpreter.java:1121)
at org.twostack.bitcoin4j.script.Interpreter.correctlySpends(Interpreter.java:1080)
at org.twostack.bitcoin4j.metaid.Main.main(Main.java:127)
The text was updated successfully, but these errors were encountered:
Set<Script.VerifyFlag> verifyFlags =new HashSet<>();
the error message is :org.twostack.bitcoin4j.script.ScriptException: ForkID is not enabled, yet the flag is set
at org.twostack.bitcoin4j.script.Interpreter.executeCheckSig(Interpreter.java:1221)
at org.twostack.bitcoin4j.script.Interpreter.executeScript(Interpreter.java:952)
at org.twostack.bitcoin4j.script.Interpreter.correctlySpends(Interpreter.java:1121)
at org.twostack.bitcoin4j.script.Interpreter.correctlySpends(Interpreter.java:1080)
at org.twostack.bitcoin4j.metaid.Main.main(Main.java:127)
The text was updated successfully, but these errors were encountered: