diff options
| author | Hennadii Stepanov <[email protected]> | 2019-08-17 17:28:43 +0300 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-11-01 18:12:57 -0400 |
| commit | 29f84343681831baf02a17d3af566c5c57ecf3c2 (patch) | |
| tree | 4b2636b77af19113fba77296385b61c5632768b7 | |
| parent | Merge #17292: Add new mempool benchmarks for a complex pool (diff) | |
| download | discoin-29f84343681831baf02a17d3af566c5c57ecf3c2.tar.xz discoin-29f84343681831baf02a17d3af566c5c57ecf3c2.zip | |
refactor: Remove redundant PSBT copy constructor
The default (i.e., generated by a compiler) copy constructor does the
same things.
Also this prevents -Wdeprecated-copy warning for implicitly declared
operator= in GCC 9.
| -rw-r--r-- | src/psbt.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/psbt.h b/src/psbt.h index 9d996171b..6a5c46805 100644 --- a/src/psbt.h +++ b/src/psbt.h @@ -401,7 +401,6 @@ struct PartiallySignedTransaction bool AddInput(const CTxIn& txin, PSBTInput& psbtin); bool AddOutput(const CTxOut& txout, const PSBTOutput& psbtout); PartiallySignedTransaction() {} - PartiallySignedTransaction(const PartiallySignedTransaction& psbt_in) : tx(psbt_in.tx), inputs(psbt_in.inputs), outputs(psbt_in.outputs), unknown(psbt_in.unknown) {} explicit PartiallySignedTransaction(const CMutableTransaction& tx); /** * Finds the UTXO for a given input index |