[Refactor] decouple wallet rpc commands #5934
pull jonasschnelli wants to merge 5 commits into bitcoin:master from jonasschnelli:2015/03/wallet_rpc_flex changing 9 files +195 −95-
jonasschnelli commented at 9:39 pm on March 21, 2015: contributorincludes #5744
-
jonasschnelli force-pushed on Mar 21, 2015
-
jonasschnelli commented at 7:24 pm on March 22, 2015: contributor
I think this PR’s implementation is not perfect and is not very modular. But it would give the opportunity to slowly decouple the wallet from the rest of the core. It’s unclear why we have a runtime linking of rpc commands and there are probably way better solutions of a dynamic handling of the rpc commands dispatching. But these are out of the PRs focus.
Longterm goals to achieve with this PR:
- Remove/reduce wallet_enabled #ifdefs
- Possibility to switch wallet implementation on compile and/or runtime (as startup/config arg)
-
in src/rpcclient.h: in 07c3027982 outdated
9@@ -10,6 +10,16 @@ 10 #include "json/json_spirit_utils.h" 11 #include "json/json_spirit_writer_template.h" 12 13+/** 14+ * Add new conversion to the JSON RPC conversion table 15+ * @param method name of the method 16+ * @param idx 0-based index of the paramter
fanquake commented at 3:36 am on March 23, 2015:s/paramter/parameterlaanwj added the label Wallet on Mar 26, 2015jonasschnelli force-pushed on Apr 12, 2015jonasschnelli commented at 9:32 am on April 12, 2015: contributorRebasedjtimon commented at 10:37 am on June 21, 2015: contributorNeeds rebasejonasschnelli commented at 10:42 am on June 21, 2015: contributor[Modularization] add possibility to extend or overwrite RPC calls
- this will allow a upcomming modularization of the wallet or other components
[Modularization] allow to add entries to the JSON conversion table
- add method to insert custom conversion entries Conflicts: src/test/rpc_tests.cpp
[Modularization] flexible RPC table overhaul 0e0f562432[Modularization] use pointers when adding or replacing RPC commands
Using pointers signals the responsibility of managing object lifetime is in the hand of the caller.
[Refactor] decouple wallet rpc commands
includes #5744
jonasschnelli force-pushed on Jun 24, 2015jonasschnelli commented at 6:46 am on June 24, 2015: contributorRebased. Misses a clever locking forCRPCTable tableRPC
. The signaling solution (https://github.com/bitcoin/bitcoin/pull/6006) which supersedes this PR is better IMO.jonasschnelli commented at 7:12 am on June 24, 2015: contributorClosing in favor of #6006jonasschnelli closed this on Jun 24, 2015
MarcoFalke locked this on Sep 8, 2021Labels
Wallet
github-metadata-mirror
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-11-17 15:12 UTC
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-11-17 15:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me