Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Do not pass chain params to CheckForStaleTipAndEvictPeers twice #19914

Merged
merged 1 commit into from Sep 8, 2020

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Sep 8, 2020

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.

@naumenkogs
Copy link
Member

utACK fa7e407

Copy link
Member

@promag promag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review fa7e407.

@jnewbery
Copy link
Contributor

jnewbery commented Sep 8, 2020

code review ACK fa7e407

Copy link

@epson121 epson121 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review ACK fa7e407

@maflcko maflcko merged commit 4f229d8 into bitcoin:master Sep 8, 2020
@maflcko maflcko deleted the 2009-netNo2ChainParams branch September 8, 2020 20:17
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Sep 28, 2021
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 [[bitcoin/bitcoin#19914 | core#19914]]

Test Plan: `ninja all check-all`

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D10195
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants