Skip to content

the code execute error #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
metanet4jDev opened this issue Dec 3, 2021 · 0 comments
Open

the code execute error #13

metanet4jDev opened this issue Dec 3, 2021 · 0 comments

Comments

@metanet4jDev
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant