bitkit icon indicating copy to clipboard operation
bitkit copied to clipboard

[Bug]: No minimum receive amount or LSP fee, and CJIT Error when attempting to receive spending balances when network is down

Open catch-21 opened this issue 8 months ago • 4 comments

Describe the bug

Created off the back of https://github.com/synonymdev/bitkit/issues/1833#issuecomment-2133657792

$0 receive minimum, $0 LSP fee and CJIT Error: init_channel_manager or CJIT Error: Failed to create cjit entry. undefined toast is displayed when attempting to receive spending balance without an existing LN connection. We should handle this better in the UI, perhaps preventing progression when unable to contact LSP.

Reproduce

This is easy to reproduce in aeroplane mode but it can also occur when network is down or restricted

  1. With no existing LN connection
  2. Enable aeroplane mode to stop network
  3. Attempt to receive lightning funds
  4. Observe $0 minimum
  5. Continue
  6. Observe $0 LSP fee
  7. Continue
  8. Observe cjit error

Screenshots / Recording

https://github.com/synonymdev/bitkit/assets/74595920/1acec51b-0dd3-4b36-90d6-82aece234fc9

Operating system

Android 13 TKQ1.221114.001

Bitkit version

5dee7d29d2cc891d52d97475de4180e020278a01

Log output

No response

catch-21 avatar May 28 '24 16:05 catch-21