-
Notifications
You must be signed in to change notification settings - Fork 87
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
Monero wallet refresh fix #1487
Conversation
345e6c0
to
c499e9d
Compare
This is still a draft. Please don't merge yet :) |
b9c7736
to
7697f42
Compare
@delta1 This is ready for review |
7697f42
to
61ae757
Compare
This commit changes the following behaviour in the refresh functionality of the monero wallet - Allows for multiple retries because in some cases users have experienced an issue where the wallet rpc returns `no connection to daemon` even though the daemon is available. I'm not 100% sure why this happens but retrying often fixes the issue - Attempt to print the current sync height while the wallet is syncing. This only works to some degree because the `monero-wallet-rpc` stops responding (or takes a long time to respond) while it's refreshing - The `monero-wallet-rpc` is started with the `--no-initial-sync` flag which ensures that as soon as it's started, it's ready to respond to requests
61ae757
to
48abcd5
Compare
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.
Nice LGTM. Do you want to add a note to the changelog? At least for bumping the Monero version
seems like some tests are now running into the 6 hour CI time limit? |
Good catch. I'll add one |
@binarybaron a few of the ci jobs are not working with this change |
@binarybaron this PR had broken one or more CI jobs. |
Okay. I'll revert this PR if the CI jobs fail on master |
@delta1 Okay it seems like some of the tests will time out. Looking at the logs it seems that the CI is stuck at refreshing the Monero wallet which seems related to this PR. I have no idea why. When refreshing the CI calls this xmr-btc-swap/swap/src/monero/wallet.rs Line 265 in d8dacbd
function with max_attempts=1 .
This line xmr-btc-swap/swap/src/monero/wallet.rs Line 299 in d8dacbd
is never reached. Nowhere in the logs is this log message to be found. The other tokio task which is responsible for logging the sync progress is called and prints periodic log messages. Do you have any idea what the issue could be here? I'm clueless. Here is the entire function for reference: xmr-btc-swap/swap/src/monero/wallet.rs Lines 265 to 330 in d8dacbd
|
revert in #1593 so we can recreate this while debugging |
recreated this PR in #1594 |
…-refresh-fix Revert "Monero wallet refresh fix (#1487)"
this is a squashed commit of the changes proposed by @binarybaron in #1487 Co-Authored-By: binarybaron <86064887+binarybaron@users.noreply.github.com>
This PR changes the following behaviour in the refresh functionality of the monero wallet
no connection to daemon
even though the daemon is available. I'm not 100% sure why this happens but retrying often fixes the issuemonero-wallet-rpc
stops responding (or takes a long time to respond) while it's refreshingmonero-wallet-rpc
is started with the--no-initial-sync
flag which ensures that as soon as it's started, it's ready to respond to requestsmonero-wallet-rpc
was upgraded tov0.18.3.1
because this PR Wallet refresh improvements monero-project/monero#8941 has improved some of the issues mentioned aboveThis PR is part of a larger effort to fix this issue #1432