Page MenuHomePhabricator

test/miner_tests: Pass in chain tip to CreateBlockIndex
ClosedPublic

Authored by PiRK on Jun 21 2022, 08:39.

Details

Event Timeline

PiRK requested review of this revision.Jun 21 2022, 08:39
Fabien requested changes to this revision.Jun 21 2022, 10:53
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/test/miner_tests.cpp
521 ↗(On Diff #34071)

ActiveTip()

553 ↗(On Diff #34071)

ActiveHeight()

558 ↗(On Diff #34071)

Dito

562 ↗(On Diff #34071)

Dito

This revision now requires changes to proceed.Jun 21 2022, 10:53

use ActiveHeight() and ActiveTip() for nullptr dereference protection in case the tip is null

This revision is now accepted and ready to land.Jun 21 2022, 14:06