-
Notifications
You must be signed in to change notification settings - Fork 38.7k
[Wallet] Add cloned wallet, remove accounts, reset version #7830
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
ba9f417 to
2fbbe96
Compare
|
s/save/safe |
2fbbe96 to
5a36731
Compare
|
Finally!!!! Great to see it's finally happening. |
|
Instead of copying several thousand lines of code, wouldn't it be possible to avoid that by leaving the current wallet implementation as a base class and then create a derived classes CLegacyWallet() and CLightWallet()? I haven't looked closely at the code, so I don't know if it is feasible, but it's a thought. |
| static HTTPRPCTimerInterface* httpRPCTimerInterface = 0; | ||
|
|
||
| static void JSONErrorReply(HTTPRequest* req, const UniValue& objError, const UniValue& id) | ||
| void JSONErrorReply(HTTPRequest* req, const UniValue& objError, const UniValue& id) |
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.
Why make this non-static? You're not ever using this outside httprpc (same for RPCAuthorized and HTTPReq_HandleAuth)
|
Closing for now. Not sure if this is the best solution. Needs discussion on the bitcoin-core-dev mailing list first. |
An alternative solution to #7729
This adds a clone of the current wallet. The second wallet can be enabled over
--enable-lightwallet.Includes:
Lightwallet::.CAccount,CAccountEntry, etc.).sandmanynow renamed to "sendcoins")10000Benefits:
Currently bitcoin-cli misses some value conversion for some commands (you can use cURL for these commands).
This PR is large because of the copy of the content in
src/wallet. You can verify the copy by diffing the first commit and start review on top of that**