Skip to content

Conversation

@furszy
Copy link

@furszy furszy commented Jun 23, 2020

Initial work over the RPC dispatch table registration update.

Includes the following changes:

  1. Remove the unused threadSafe member from every CPRCCommand. (Push down RPC locks bitcoin/bitcoin#5711 , second commit)
  2. Remove reqWallet from every CPRCCommand (Push down RPC reqWallet flag bitcoin/bitcoin#5992 , second commit partially).
  3. Move most of the wallet RPC commands registration to the rpcwallet file ([RPC, Wallet] Move RPC dispatch table registration to wallet/ code bitcoin/bitcoin#7307 without the EnsureWalletIsAvailable on every RPC call --> mainly because the wallet RPC commands will only be registered if the wallet is available).

to do: Move the remaining commands that were not moved from server to rpcwallet.


Next step would be bitcoin#7766 (If anyone want to tackle it, feel more than welcome to tackle it).

@furszy furszy self-assigned this Jun 23, 2020
@furszy furszy changed the title [WIP] RPC: Table registration update + wallet table decoupled. RPC: Table registration update + wallet table decoupled. Jun 23, 2020
@furszy furszy force-pushed the 2020_rpc_wallet_table branch 4 times, most recently from 42980fe to ff91002 Compare June 24, 2020 04:24
@Fuzzbawls Fuzzbawls changed the title RPC: Table registration update + wallet table decoupled. [RPC] Table registration update and wallet table decoupled. Jun 24, 2020
@Fuzzbawls Fuzzbawls added the RPC label Jun 24, 2020
@random-zebra random-zebra added this to the 4.2.0 milestone Jun 28, 2020
@random-zebra
Copy link

Needs rebase.

@furszy furszy force-pushed the 2020_rpc_wallet_table branch from ff91002 to 9f4868a Compare June 29, 2020 14:23
@furszy
Copy link
Author

furszy commented Jun 29, 2020

Rebased

Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 9f4868a

Note: Zerocoin wallet-related RPC commands are still registered in the commands table even with -disablewallet. This, however is a minor issue as there isn't much demand to run the daemon without wallet functionality.

Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good. ACK 9f4868a and merging...

@random-zebra random-zebra merged commit 7a849ca into PIVX-Project:master Jul 1, 2020
@furszy furszy deleted the 2020_rpc_wallet_table branch November 29, 2022 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants