Skip to content

the code execute error #13

Open
Open
@metanet4jDev

Description

@metanet4jDev

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions