RPC refactoring: Access wallet using new GetWalletForJSONRPCRequest#8775
RPC refactoring: Access wallet using new GetWalletForJSONRPCRequest#8775laanwj merged 9 commits intobitcoin:masterfrom
Conversation
|
I don't like the coupling and the I think we should pack the request path (URI) into the Instead of the |
|
General ConceptACK on a |
src/rpc/misc.cpp
Outdated
There was a problem hiding this comment.
Yes, pwallet is an alias to reqinfo.wallet which is of type CWallet*.
That sounds nice, but greatly complicates the implementation. :( |
7697a0e to
df2c0c5
Compare
|
I think this can be closed after #8788? |
|
Closing in favor of merged #8788 |
Wrapped in CRPCRequestInfo to avoid gratuitous #ifdef ENABLE_WALLET everywhere Github-Pull: bitcoin#8775 Rebased-From: 80f4ab7b5f404d20bed41ec70182e6fc0990205b
Github-Pull: bitcoin#8775 Rebased-From: 9279b515815e58df5bd796b0570e388ff42fb84b
…nique per CWallet Github-Pull: bitcoin#8775 Rebased-From: 041f4e06a664b7e31ba77bbfbb2f7bc8d04174ca
06bd5d0 to
ab5ce98
Compare
|
Rebased and refactored based on @jonasschnelli 's idea. |
|
Makes sense, utACK ab5ce98 |
src/rpc/misc.cpp
Outdated
|
|
||
| using namespace std; | ||
|
|
||
| CWallet *GetWalletForJSONRPCRequest(const JSONRPCRequest&); |
There was a problem hiding this comment.
Not sure how this can pass the build w/ --disable-wallet, but this should be bracketed with #ifdef ENABLE_WALLET
5cce71a to
d6bc295
Compare
|
Rebased and addressed nit |
d6bc295 to
7de5573
Compare
Github-Pull: bitcoin#8775 Similar-To: 7de55733c5690350c48ec94660b5be56fbb5eb39
|
utACK 7de55733c5690350c48ec94660b5be56fbb5eb39 |
7de5573 to
7c65786
Compare
Github-Pull: bitcoin#8775 Rebased-From: d77ad6d
…nique per CWallet Github-Pull: bitcoin#8775 Rebased-From: 2e518e3
Github-Pull: bitcoin#8775 Rebased-From: bf8a04a
Github-Pull: bitcoin#8775 Rebased-From: ad15734
Github-Pull: bitcoin#8775 Rebased-From: a435632
…equest where appropriate Github-Pull: bitcoin#8775 Rebased-From: 86be48a
…RPCRunLater job name The job name is logged, and could pose as an information leak to someone attacking the process, helping them counteract ASLR protections Github-Pull: bitcoin#8775 Rebased-From: 9756be3
Github-Pull: bitcoin#8775 Rebased-From: d678771
|
By the way, I reviewed this partially after merged when rebasing #9845 (making it mostly pointless since most was done here already). |
|
Hello @luke-jr , Is there any way where we can increase the number of wallets to be in loaded state at same time.As rightnow its like if I load wallet more than 100 or 150 daemon is getting crashed/stopped. I am trying to load/unload wallet dynamically using RPC. What i tried is incraesing the Reflink for above setup : https://docs.oracle.com/cd/E17276_01/html/api_reference/C/set_lk_max_lockers_parameter.html So is there any way or configuration or any changes which can increase and allow more number of wallets to be loaded ? |
Part of the refactorings needed for basic multiwallet (#8694)