Files
bitcoin/src/test/fuzz
fanquake 65f5cfda65 Merge bitcoin/bitcoin#25311: refactor: remove CBlockIndex copy construction
36c201feb7 remove CBlockIndex copy construction (James O'Beirne)

Pull request description:

  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 members (e.g. pprev).

  (See also https://github.com/bitcoin/bitcoin/pull/24008#discussion_r891949166)

  We can't just delete the copy constructors because they are used for
  derived classes (CDiskBlockIndex), so we mark them protected.

ACKs for top commit:
  ajtowns:
    ACK 36c201feb7 - code review only
  MarcoFalke:
    re-ACK 36c201feb7  🏻

Tree-SHA512: b1cf9a1cb992464a4377dad609713eea63cc099435df374e4553bfe62d362a4eb5e3c6c6649177832f38c0905b23841caf9d62196cef8e3084bfea0bfc26374b
2022-12-19 09:34:39 +00:00
..
2022-06-29 10:33:13 +02:00
2020-12-10 07:15:42 +01:00
2020-12-10 07:15:42 +01:00
2021-12-30 19:36:57 +02:00
2020-12-10 07:15:42 +01:00
2022-05-11 16:39:23 +02:00
2022-04-27 19:53:17 +02:00
2022-11-23 17:26:01 +01:00
2022-10-04 21:12:50 +01:00
2020-12-10 07:15:42 +01:00
2021-09-22 10:39:08 +02:00
2022-11-23 17:26:01 +01:00
2022-11-23 17:26:01 +01:00
2022-11-23 17:26:01 +01:00
2020-12-10 07:15:42 +01:00
2020-12-10 07:15:42 +01:00
2022-11-23 17:26:01 +01:00
2020-12-10 07:15:42 +01:00
2022-11-23 17:26:01 +01:00
2022-11-23 17:26:01 +01:00