From 0e8a51123b3e5b35ae71610e6d7b8d2844868964 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Wed, 6 Sep 2023 13:17:36 +0200 Subject: [PATCH] Transaction: add back a constructor as deprecated Problem: At the moment, we don't have a replacement. --- core/src/main/java/org/bitcoinj/core/Transaction.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/main/java/org/bitcoinj/core/Transaction.java b/core/src/main/java/org/bitcoinj/core/Transaction.java index 2daa5cff75a..4b6beb59625 100644 --- a/core/src/main/java/org/bitcoinj/core/Transaction.java +++ b/core/src/main/java/org/bitcoinj/core/Transaction.java @@ -323,6 +323,12 @@ public Transaction() { vLockTime = LockTime.unset(); } + /** @deprecated use {@link #Transaction()} */ + @Deprecated + public Transaction(NetworkParameters params) { + this(); + } + /** * Returns the transaction id as you see them in block explorers. It is used as a reference by transaction inputs * via outpoints.