question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why does the main wallet balance differ from the on-chain balance shown on the Create Channel Pay form?

See original GitHub issue

I 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

  1. Ran yarn && yarn dev on next branch
  2. Requested testnet coins from a faucet
  3. Once I received my coins I opened a channel with a node with this id: 0260d9119979caedc570ada883ff614c6efb93f7f7382e25d73ecbeba0b62df2d7
  4. While waiting for the funding transaction to confirm I attempted to open another channel with nodes that Zap suggested
  5. Couldn’t open any channels because my balance was showing as zero on the “open channel” screen. Same was happening on the “pay” screen
  6. Restarted Zap and balance was showing correctly after this restart and now my balance started showing correctly and I could open another channel
  7. Once I opened this new channel I encountered the same issue again (balance showing as zero again)
  8. 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: Screen Shot 2019-07-30 at 5 11 38 PM

Pending channel creation screen: Screen Shot 2019-07-30 at 5 11 30 PM

“Open a channel” screen with incorrect balance: Screen Shot 2019-07-30 at 5 12 06 PM

“Open a channel” screen with correct balance after Zap restart: Screen Shot 2019-07-30 at 5 20 12 PM

Terminal output (nothing special): Screen Shot 2019-07-30 at 5 43 49 PM

Browser console also doesn’t have anything special in it except for an unrelated warning: Screen Shot 2019-07-30 at 5 46 26 PM

Your Environment

  • Zap version: 0.6.0-alpha
  • Operating System and version: macOS Mojave v10.14.5

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
mrfeltoncommented, Jul 31, 2019

Sounds about right?

Spot on.

All of the above makes me wonder if there is a UX improvement that can be made here.

There definitely is. You are not the first to be confused by this.

0reactions
mrfeltoncommented, May 24, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the difference between wallet balance, local balance ...
Your wallet balance is the total amount of funds that you control that are not in a channel. It's the sum of the...
Read more >
Why is my Bitcoin balance different than the blockchain?
Your Exodus Bitcoin wallet balance is therefore the sum of all the Bitcoin held at each of your Exodus Bitcoin addresses. If you...
Read more >
UTXO vs. Account Model - Horizen
The conceptual difference is that the account model updates user balances globally. The UTXO model only records transaction receipts. In the UTXO model,...
Read more >
Wallet balances on Bitcoin's Lightning Network aren't private ...
Wallet balances on Bitcoin's Lightning Network aren't private, new report says. Bitcoin researchers show how Lightning channel balances are ...
Read more >
Bitcoin Lightning Network Explained: How it Actually Works
How the lightning 2nd layer enables fast and cheap Bitcoin transactions, including demos, payment channels, multi-hop payments, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found