Script: remove deprecated method executeScript()

This commit is contained in:
micheal swiggs-malmevik 2023-02-07 15:09:17 +01:00 committed by Andreas Schildbach
parent 54c85b2574
commit 81ddf4f27e

View File

@ -833,26 +833,6 @@ public class Script {
return ByteUtils.decodeMPI(ByteUtils.reverseBytes(chunk), false);
}
/**
* Exposes the script interpreter. Normally you should not use this directly, instead use
* {@link TransactionInput#verify(TransactionOutput)} or
* {@link Script#correctlySpends(Transaction, int, TransactionWitness, Coin, Script, Set)}. This method
* is useful if you need more precise control or access to the final state of the stack. This interface is very
* likely to change in future.
*
* @deprecated Use {@link #executeScript(Transaction, long, Script, LinkedList, Set)}
* instead.
*/
@Deprecated
public static void executeScript(@Nullable Transaction txContainingThis, long index,
Script script, LinkedList<byte[]> stack, boolean enforceNullDummy) throws ScriptException {
final EnumSet<VerifyFlag> flags = enforceNullDummy
? EnumSet.of(VerifyFlag.NULLDUMMY)
: EnumSet.noneOf(VerifyFlag.class);
executeScript(txContainingThis, index, script, stack, flags);
}
/**
* Exposes the script interpreter. Normally you should not use this directly, instead use
* {@link TransactionInput#verify(TransactionOutput)} or