-
Notifications
You must be signed in to change notification settings - Fork 59
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
[GUI] Don't treat wallets using bitcoind as syncing #1387
[GUI] Don't treat wallets using bitcoind as syncing #1387
Conversation
bda97cf
to
b2ca118
Compare
I think you can modify DaemonBackend for: use crate::node::NodeType;
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum DaemonBackend {
EmbeddedLianad(NodeType),
ExternalLianad,
RemoteBackend,
} It may be more practical for the gui, wdyt ? |
That looks good, I'll change it to that. Do you think it would make sense at some point to add "node_type" to |
Yes, I believe it is not worth it for now. |
This is for convenience in case we need to know the node type being used. Although we expect there to always be a node type, it is kept as `Option` to be consistent with the daemon config.
If the user has imported a descriptor and is using bitcoind as a local node, then they will need to perform a rescan in order to see past transactions. Treating the wallet as syncing in this case could mislead the user that a rescan is being performed. Therefore, it's better to keep the past behaviour here to avoid further confusion.
b2ca118
to
9208cd1
Compare
I've made the suggested change except I decided to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 9208cd1
This is a follow-up to #1370.
If the user has imported a descriptor and is using bitcoind as a local node, then they will need to perform a rescan in order
to see past transactions. Treating the wallet as syncing in this case could mislead the user that a rescan is being performed. Therefore, it's better to keep the past behaviour here to avoid further confusion.