Skip to content
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

wallet: add no_initial_sync argument to open_wallet rpc command. #9579

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

0xFFFC0000
Copy link
Collaborator

@0xFFFC0000 0xFFFC0000 commented Nov 18, 2024

Add refresh step when opening a wallet with open_wallet.

  1. add no_initial_sync argument to open_wallet rpc command.
  2. Clean --no-initial-sync implementation.
  3. Fix spelling error.

The interface for open_wallet has stayed the same. Passing no_initial_sync to open_wallet RPC will prevent open_wallet from doing a refresh after opening a wallet.

Open wallet with default refresh:

open_wallet': curl http://localhost:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"open_wallet","params":{"filename":"WalletName","password":""}}' -H 'Content-Type: application/json'

Open wallet without refresh after opening wallet:

open_wallet': curl http://localhost:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"open_wallet","params":{"filename":"MainNetWallet","password":"", "no_initial_sync": true}}' -H 'Content-Type: application/json'

   * Clean --no-initial-sync implementation.
   * Fix spelling error.
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.

1 participant