Open
Description
Set<Script.VerifyFlag> verifyFlags =new HashSet<>();
//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)
Metadata
Metadata
Assignees
Labels
No labels