mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-19 05:33:44 +01:00
Script: remove deprecated method executeScript()
This commit is contained in:
parent
54c85b2574
commit
81ddf4f27e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user