Skip to content

Long initial sync time when monero-wallet-rpc is started without --daemon-address option #10322

@woodser

Description

@woodser

If monero-wallet-rpc is started with a connected --daemon-address option, then creating a new wallet syncs almost immediately, from an appropriate height.

However, if --daemon-address is omitted, and then a wallet is created without syncing (by disabling auto_refresh), then a daemon connection is set via set_daemon, then the restore height can be ~40,000 blocks behind the current height when the wallet is synced for the first time.

As a result, the most reliable way to create a new wallet is with the --daemon-address option, which requires the wallet rpc server to be shut down and restarted any time the user or application wants to change the daemon connection or proxy configuration.

This issue requests using an appropriate restore height when monero-wallet-rpc is started without --daemon-address, and set_daemon is called before the wallet is synced for the first time.

Possibly related or a clarification of #8776

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions