Page MenuHomePhabricator

test: Change background_cs from pointer to reference in validation_chainstate_tests
ClosedPublic

Authored by PiRK on Dec 19 2023, 09:30.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC5ec09df7fd67: test: Change background_cs from pointer to reference in…
Summary

This changes background_cs from being a pointer to a reference to work
around a gcc false warning. Also, this makes the test easier to read.

Fixes https://github.com/bitcoin/bitcoin/issues/23101

Can be reviewed with --ignore-all-space.

This is a backport of core#23132

Test Plan

ninja check

Diff Detail

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

Event Timeline

PiRK requested review of this revision.Dec 19 2023, 09:30
src/test/validation_chainstate_tests.cpp
116 ↗(On Diff #43662)

I'm not sure why I previously added this chainstates local var/alias. This is an opportunity to get closer to the source material.

This revision is now accepted and ready to land.Dec 19 2023, 14:38