fStateStats
checks.
rpc: remove optional from fStateStats fields #26727
pull fanquake wants to merge 1 commits into bitcoin:master from fanquake:remove_fstatestats_post_26515 changing 1 files +24 −28-
fanquake commented at 3:40 pm on December 19, 2022: memberThese are no-longer optional after #26515, so remove the documentation, and no-op
-
rpc: remove optional from fStateStats fields
These are no-longer optional after #26515, so remove the documentation, and no-op fStateStats checks.
-
fanquake added the label RPC/REST/ZMQ on Dec 19, 2022
-
DrahtBot commented at 3:40 pm on December 19, 2022: contributor
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 commented at 4:01 pm on December 19, 2022: memberConcept ACK
-
mzumsande commented at 5:36 pm on December 20, 2022: contributorThis 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#pullrequestreview-1188773952), but we’d certainly would want to avoid removing the optional just to make it optional again in a follow-up PR:
-
bitcoin deleted a comment on Dec 20, 2022
-
fanquake commented at 3:35 pm on January 11, 2023: member
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 commented at 3:43 pm on January 11, 2023: memberlgtm. 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?
-
fanquake requested review from dergoegge on Jan 17, 2023
-
dergoegge approved
-
dergoegge commented at 10:20 am on January 18, 2023: memberCode review ACK 1dc0e4bc6f3bd156b3fcd942b80820e60b83fa61
-
maflcko merged this on Jan 18, 2023
-
maflcko closed this on Jan 18, 2023
-
fanquake deleted the branch on Jan 18, 2023
-
sidhujag referenced this in commit a6dbeff60a on Jan 18, 2023
-
bitcoin locked this on Jan 18, 2024
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-24 00:12 UTC
More mirrored repositories can be found on mirror.b10c.me