Page MenuHomePhabricator

Do not pass chain params to CheckForStaleTipAndEvictPeers twice
ClosedPublic

Authored by PiRK on Sep 24 2021, 12:21.

Details

Summary

PeerManager already keeps a reference to the chain params as a member
variable. No need to pass it in once again as a function parameter.

This is a backport of core#19914

Test Plan

ninja all check-all

Diff Detail

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

Event Timeline

PiRK requested review of this revision.Sep 24 2021, 12:21
deadalnix requested changes to this revision.Sep 24 2021, 19:39
deadalnix added a subscriber: deadalnix.
deadalnix added inline comments.
src/test/denialofservice_tests.cpp
192 ↗(On Diff #30156)

Why did you change this?

This revision now requires changes to proceed.Sep 24 2021, 19:39

I favored the solution that brings the code closer to Core's codebase , because I have not preference either way and it makes future backports a bit easier.
I can change it back.

revert unnecessary changes in denialofservice_tests.cpp

This revision is now accepted and ready to land.Sep 27 2021, 21:57