Page MenuHomePhabricator

validation: remove redundant check on pindex
ClosedPublic

Authored by PiRK on Jul 20 2022, 09:36.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC602209d248fc: validation: remove redundant check on pindex
Summary

This removes a conditional that checks if pindex is equal to nullptr.
This check is redundant because the branch where pindex is set returns at an earlier time. Additionaly, The independence of the earlier and later pindex is made clearer.

This is a backport of core#20868

Test Plan

ninja all check-all

Diff Detail

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