Skip to content

backport: dash#7312 fix CheckQueue lifetime for invalid-block logging - #41

Merged
minuszka merged 1 commit into
defcon-project:v22.1.xfrom
minuszka:backport/checkqueue-logging-7312
Jul 6, 2026
Merged

minuszka merged 1 commit into
defcon-project:v22.1.xfrom
minuszka:backport/checkqueue-logging-7312

Conversation

@minuszka

@minuszka minuszka commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Declare txsdata before control in ConnectBlock so it outlives the CCheckQueueControl destructor. The destructor runs the parallel script checks, which hold pointers into txsdata; with control declared first it was destroyed after txsdata, so the checks could reference freed data, causing intermittent incorrect CheckQueue logging for invalid blocks.

Backport of dashpay/dash#7312.

Declare txsdata before control in ConnectBlock so it outlives the
CCheckQueueControl destructor. The destructor runs the parallel script
checks, which hold pointers into txsdata; with control declared first it
was destroyed after txsdata, so the checks could reference freed data,
causing intermittent incorrect CheckQueue logging for invalid blocks.

Backport of dashpay/dash#7312.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@minuszka
minuszka merged commit fd75a69 into defcon-project:v22.1.x Jul 6, 2026
3 checks passed
@minuszka
minuszka deleted the backport/checkqueue-logging-7312 branch July 6, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant