-
Notifications
You must be signed in to change notification settings - Fork 37.7k
rpc: replace raw pointers with shared_ptrs #18592
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
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.
Concept ACK.
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.
Looks like you forgot some. Maybe this could be split up into two commits? No strong opinion though.
Oops, you're right. Thanks. Still some unneeded shared pointers. Will replace them, no problem. |
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.
I am still seeing two pointers, otherwise ACK
Two pointers? But I already changed: --EDIT: Nevermind, yes, it was about EnsureWalletIsUnlocked. |
Code review ACK e681778. |
ACK e681778 |
Concept ACK |
Co-authored-by: MarcoFalke <falke.marco@gmail.com> Co-authored-by: João Barbosa <joao.paulo.barbosa@gmail.com>
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 c13d3c3. Looks perfect!
Travis error sync_mempools timeout in feature_fee_estimation.py in https://travis-ci.org/github/bitcoin/bitcoin/jobs/683889542#L3121 is presumably unrelated |
Believe this was just a rageclose (exciting!) and someone else could pick this up |
…rebased) 7c90c67 rpc: refactor rpc wallet functions to take references instead of pointers (fanquake) 4866934 rpc: remove calls to CWallet.get() (fanquake) Pull request description: This is a rebased #18592. > This PR replaces raw pointers in `rpcwallet.cpp` and `rpcdump.cpp` with **shared_ptr**. The motivation for this PR is described here #18590 > It seems that this PR is indirectly related to this issue: #13063 (comment) > Notice: I have deliberately **not** changed the class `WalletRescanReserver ` whose constructor expects a raw pointer, because it's external and affects other areas, which I didn't touch to avoid making this PR "viral". > Fixes #18590 ACKs for top commit: MarcoFalke: ACK 7c90c67 🐧 ryanofsky: Code review ACK 7c90c67. Changes easy to review with `--word-diff-regex=. -U0` Tree-SHA512: 32d69c813026b02260e8a89de9d6a5ab9e87826ba230687246583ac7a80c8c3fd00318da4658f1450e04c23d2c77ae765862de0d2a110b1312b3b69a1161e7ba
This PR replaces raw pointers in
rpcwallet.cpp
andrpcdump.cpp
with shared_ptr. The motivation for this PR is described here #18590The currently available unit and functional tests complete without errors.
It seems that this PR is indirectly related to this issue: #13063 (comment)
Notice: I have deliberately not changed the class
WalletRescanReserver
whose constructor expects a raw pointer, because it's external and affects other areas, which I didn't touch to avoid making this PR "viral".Fixes #18590