-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Drop JSONRPCRequest constructors after #21366 #21574
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
Conversation
Concept ACK Considering the bug fixed in #21572, I think it would also make sense to deduplicate the two loops in |
Thanks for reviewing and suggesting the improvement. #21467 is removing the second loop though, so best not to consolidate these. |
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review ACK 2b98711
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code-review ACK 2b98711
Nice simplification!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review ACK 2b98711
This just makes an additional simplification after bitcoin#21366 replaced util::Ref with std::any. It was originally suggested bitcoin#21366 (comment) but delayed for a followup. It would have prevented usage bug bitcoin#21572.
I think you forgot to rebase this on 937fd4a when opening the pr. Git can't figure out that this doesn't conflict, otherwise. |
Thanks! Rebased now. Rebased 2b98711 -> 9044522 ( |
ACK 9044522, fixed conflict in src/wallet/interfaces.cpp. |
…1366 9044522 Drop JSONRPCRequest constructors after bitcoin#21366 (Russell Yanofsky) Pull request description: This just makes an additional simplification after bitcoin#21366 replaced util::Ref with std::any. It was originally suggested bitcoin#21366 (comment) but delayed for a followup. It would have prevented usage bug bitcoin#21572. ACKs for top commit: promag: ACK 9044522, fixed conflict in src/wallet/interfaces.cpp. Tree-SHA512: e909411b8f75013620b94e1a609296befb832fdcb574cd2e6689bfe3c636b03cd4ac1ccb2b32b532daf0f2131bb043464024966310fffc7e3cad77713d4bd0ef
Summary: This just makes an additional simplification after D11552 replaced `util::Ref` with `std::any`. Note that we sometimes wrap the context in a `HTTPRPCRequestProcessor`instance, so some changes don't apply in bitcoind.cpp and init.cpp. This is a backport of [[bitcoin/bitcoin#21574 | core#21574]] Depends on D11552 Test Plan: `ninja all check-all` Reviewers: #bitcoin_abc, Fabien Reviewed By: #bitcoin_abc, Fabien Differential Revision: https://reviews.bitcoinabc.org/D11560
This just makes an additional simplification after #21366 replaced
util::Ref with std::any. It was originally suggested
#21366 (comment) but
delayed for a followup. It would have prevented usage bug
#21572.