mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-13 11:36:15 +01:00
Transaction: add back a byte[]
-based constructor as deprecated
This commit is contained in:
parent
c05fefe8f8
commit
ba72884832
1 changed files with 6 additions and 0 deletions
|
@ -239,6 +239,12 @@ public class Transaction extends ChildMessage {
|
|||
// inputs/outputs will be created in parse()
|
||||
}
|
||||
|
||||
/** @deprecated use {@link #Transaction(NetworkParameters, ByteBuffer)} or {@link MessageSerializer#makeTransaction(ByteBuffer)} */
|
||||
@Deprecated
|
||||
public Transaction(NetworkParameters params, byte[] payload) throws ProtocolException {
|
||||
this(params, ByteBuffer.wrap(payload));
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a transaction by reading payload starting from offset bytes in. Length of a transaction is fixed.
|
||||
* @param params NetworkParameters object.
|
||||
|
|
Loading…
Add table
Reference in a new issue