txgraph: drop move assignment operator

This commit is contained in:
Anthony Towns
2025-11-12 11:20:13 -05:00
committed by Pieter Wuille
parent 5336bcd578
commit ade0397f59
3 changed files with 5 additions and 22 deletions

View File

@@ -241,8 +241,8 @@ public:
/** Destroy this Ref. If it is not empty, the corresponding transaction is removed (in both
* main and staging, if it exists). */
virtual ~Ref();
// Support moving a Ref.
Ref& operator=(Ref&& other) noexcept;
// Support move-constructing a Ref.
Ref& operator=(Ref&& other) noexcept = delete;
Ref(Ref&& other) noexcept;
// Do not permit copy constructing or copy assignment. A TxGraph entry can have at most one
// Ref pointing to it.