aboutsummaryrefslogtreecommitdiff
path: root/contrib/message-capture
diff options
context:
space:
mode:
authorJames O'Beirne <james.obeirne@pm.me>2022-06-08 12:06:55 -0400
committerJames O'Beirne <james.obeirne@pm.me>2022-12-15 14:52:28 -0500
commit36c201feb74bbb87d22bd956373dbbb9c47fb7e7 (patch)
tree30162cdc904e53af1626400ca005827fbb8b6132 /contrib/message-capture
parentfc44d1796e4df5824423d7d13de3082fe204db7d (diff)
remove CBlockIndex copy construction
Copy construction of CBlockIndex objects is a footgun because of the wide use of equality-by-pointer comparison in the code base. There are also potential lifetime confusions of using copied instances, since there are recursive pointer references (e.g. pprev). We can't just delete the copy constructors because they are used for derived classes (CDiskBlockIndex), so we mark them protected. Delete move constructors and declare the destructor to satisfy the "rule of 5."
Diffstat (limited to 'contrib/message-capture')
0 files changed, 0 insertions, 0 deletions