diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h --- a/src/primitives/transaction.h +++ b/src/primitives/transaction.h @@ -334,6 +334,8 @@ PrecomputedTransactionData(const PrecomputedTransactionData &txdata) = default; + PrecomputedTransactionData & + operator=(const PrecomputedTransactionData &txdata) = default; template explicit PrecomputedTransactionData(const T &tx); }; diff --git a/src/psbt.h b/src/psbt.h --- a/src/psbt.h +++ b/src/psbt.h @@ -359,9 +359,6 @@ */ bool GetInputUTXO(CTxOut &utxo, int input_index) const; - PartiallySignedTransaction & - operator=(const PartiallySignedTransaction &other) = default; - template inline void Serialize(Stream &s) const { // magic bytes s << PSBT_MAGIC_BYTES; diff --git a/src/script/scriptcache.h b/src/script/scriptcache.h --- a/src/script/scriptcache.h +++ b/src/script/scriptcache.h @@ -33,6 +33,8 @@ ScriptCacheKey(const ScriptCacheKey &rhs) = default; ScriptCacheKey(const CTransaction &tx, uint32_t flags); + ScriptCacheKey &operator=(const ScriptCacheKey &rhs) = default; + bool operator==(const ScriptCacheKey &rhs) const { return rhs.data == data; } diff --git a/src/test/cuckoocache_tests.cpp b/src/test/cuckoocache_tests.cpp --- a/src/test/cuckoocache_tests.cpp +++ b/src/test/cuckoocache_tests.cpp @@ -44,6 +44,8 @@ std::copy(k.begin() + 4, k.end(), data.begin()); } + KeyType &operator=(const KeyType &rhs) = default; + bool operator==(const KeyType &rhs) const { return rhs.data == data; } }; @@ -60,6 +62,8 @@ TestMapElement(const KeyType &keyIn, uint32_t valueIn) : key(keyIn), value(valueIn) {} + TestMapElement &operator=(const TestMapElement &e) = default; + const KeyType &getKey() const { return key; } uint32_t getValue() const { return value; }