Skip to content

Conversation

@fanquake
Copy link
Member

These are no-longer optional after #26515, so remove the documentation, and no-op fStateStats checks.

These are no-longer optional after bitcoin#26515, so remove the documentation,
and no-op fStateStats checks.
@DrahtBot
Copy link
Contributor

DrahtBot commented Dec 19, 2022

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK dergoegge

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #26621 (refactor: Continue moving application data from CNode to Peer by dergoegge)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@dergoegge
Copy link
Member

Concept ACK

Copy link
Contributor

@mzumsande mzumsande left a comment

Choose a reason for hiding this comment

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

This should be fine (and was included in a previous version of #26515 ), but it should be weighed against the alternative of making some of these fields optional to replace default values during the setup of a new connection (#25923) when we don't know the correct values yet.
I don't have a strong opinion (see my comment there #25923 (review)), but we'd certainly would want to avoid removing the optional just to make it optional again in a follow-up PR:

@bitcoin bitcoin deleted a comment Dec 20, 2022
@fanquake
Copy link
Member Author

but we'd certainly would want to avoid removing the optional just to make it optional again in a follow-up PR:

I agree on not wanting to make unecessary changes, although I'm not sure there is value keeping around what is currently dead code just incase we change something again later. It's unclear to me what the status of #25923 is.

@maflcko
Copy link
Member

maflcko commented Jan 11, 2023

lgtm. Given that this is dead code (nullopt is never returned), making it "truly" optional would be a breaking change. Not sure how much value there is in breaking this at this point. Maybe future fields can just be optional like pingtime is optional?

@jonatack
Copy link
Member

jonatack commented Jan 11, 2023

It's unclear to me what the status of #25923 is.

I'm rebasing and updating #25923, should push today/tomorrow and provide any relevant feedback here.

@fanquake fanquake requested a review from dergoegge January 17, 2023 15:36
Copy link
Member

@dergoegge dergoegge 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 1dc0e4b

@maflcko maflcko merged commit 500f25d into bitcoin:master Jan 18, 2023
@fanquake fanquake deleted the remove_fstatestats_post_26515 branch January 18, 2023 11:50
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jan 18, 2023
@bitcoin bitcoin locked and limited conversation to collaborators Jan 18, 2024
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.

6 participants