mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-13 11:36:15 +01:00
TransactionInput: use private constructor via this()
in constructor for unsigned input
This commit is contained in:
parent
1ce554c901
commit
7a558fb557
1 changed files with 7 additions and 7 deletions
|
@ -142,13 +142,13 @@ public class TransactionInput {
|
|||
* Creates an UNSIGNED input that links to the given output
|
||||
*/
|
||||
TransactionInput(Transaction parentTransaction, TransactionOutput output) {
|
||||
outpoint = output.getParentTransaction() != null ?
|
||||
new TransactionOutPoint(output.getIndex(), output.getParentTransaction()) :
|
||||
new TransactionOutPoint(output);
|
||||
scriptBytes = EMPTY_ARRAY;
|
||||
sequence = NO_SEQUENCE;
|
||||
setParent(parentTransaction);
|
||||
this.value = output.getValue();
|
||||
this(parentTransaction,
|
||||
EMPTY_ARRAY,
|
||||
output.getParentTransaction() != null ?
|
||||
new TransactionOutPoint(output.getIndex(), output.getParentTransaction()) :
|
||||
new TransactionOutPoint(output),
|
||||
NO_SEQUENCE,
|
||||
output.getValue());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue