Page MenuHomePhabricator

[backport#17162] chain: Remove CBlockIndex::SetNull helper
ClosedPublic

Authored by majcosta on Dec 24 2020, 04:30.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABCca7abed8bb6c: [backport#17162] chain: Remove CBlockIndex::SetNull helper
Summary

fa0467326ff004a0a20c6af9c8f6adcc74a0c8af chain: Set all CBlockIndex members to null, remove SetNull helper (MarcoFalke)

Pull request description:

The first commit removes the `SetNull` helper and inlines the member initialization (C++11). See https://github.com/bitcoin/bitcoin/blob/master/doc/developer-notes.md#c-data-structures for rationale.

<strike>The second commit adds the `cs_main` lock annotation to `RaiseValidity`. See also #17161.</strike>

Backport of Core PR17162

Test Plan
ninja all check check-functional

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable