-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fix: cli: Only display warning
if behind sync
#11140
Conversation
Only display `chain sync in progress` if behind sync
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.
LGTM, and nice test plan!
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.
Unify IsSyncDone in cli/sync.go and cli/wallet.go
@arajasek Unified the logic a bit in 18ae6bd, and re-ran the tests. Deleted the chain data, and synced from scratch: When sync in progress:
Wallet balance displays the error:
When getting past epoch where there are fund in the wallet, or in you are in sync:
Also for wallets with 0-balance
I will look into the tests expectations now |
Set up an expected call to ChainHead
TestWalletBalance is now happy again! But looks like wdpost_no_miner_storage is potentially flaky? |
Related Issues
Closes #11134
Proposed Changes
Only display the
warning: may display 0 if chain sync in progress
if behind sync and balance is 0 in thelotus wallet balance <f....>
Additional Info
Tested on the butterfly-network. Address with a balance of 1000 FIL at a later epoch, deleted the chain data, and synced from scratch:
When sync in progress:
Wallet balance displays the error:
After syncing past the epoch where it got funds, not displaying the warning:
On a new wallet with a 0 balance and you are in sync, it does not display the warning:
Checklist
Before you mark the PR ready for review, please make sure that:
<PR type>: <area>: <change being made>
fix: mempool: Introduce a cache for valid signatures
PR type
: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, testarea
, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps