Why does the main wallet balance differ from the on-chain balance shown on the Create Channel Pay form?
See original GitHub issueI couldn’t send a payment or open a new channel even though the main dashboard was showing that I had balance but when I went to payment/open channel screens my balance was shown as zero.
NOTE: I was using the “next” branch on Testnet. I enabled Testnet by changing network
property in default.js
to 'testnet'
.
Expected Behavior
Balance should be displayed consistently everywhere.
Actual Behavior
Balance is shown correctly on the main screen but shown as zero on payment/open channel screens.
Steps to Reproduce
- Ran
yarn && yarn dev
onnext
branch - Requested testnet coins from a faucet
- Once I received my coins I opened a channel with a node with this id:
0260d9119979caedc570ada883ff614c6efb93f7f7382e25d73ecbeba0b62df2d7
- While waiting for the funding transaction to confirm I attempted to open another channel with nodes that Zap suggested
- Couldn’t open any channels because my balance was showing as zero on the “open channel” screen. Same was happening on the “pay” screen
- Restarted Zap and balance was showing correctly after this restart and now my balance started showing correctly and I could open another channel
- Once I opened this new channel I encountered the same issue again (balance showing as zero again)
- I restarted Zap again thinking it would fix the issue like it did last time but it didn’t. I attempted this twice with no luck. I don’t see any errors in the console.
Screenshots
Main screen with correct balance:
Pending channel creation screen:
“Open a channel” screen with incorrect balance:
“Open a channel” screen with correct balance after Zap restart:
Terminal output (nothing special):
Browser console also doesn’t have anything special in it except for an unrelated warning:
Your Environment
- Zap version: 0.6.0-alpha
- Operating System and version: macOS Mojave v10.14.5
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (8 by maintainers)
Spot on.
There definitely is. You are not the first to be confused by this.
Closing this since the footer notes where it says your current balance was updated a while back to clarify that it’s your current confirmed balance in https://github.com/LN-Zap/zap-desktop/pull/3015