1
0

Show options if we do not have the liquidity to pay a lightning invoice:

pay onchain, open channel, rebalance.

If we do a swap or open a channel, the payment will be scheduled.
This commit is contained in:
ThomasV
2021-01-25 19:40:15 +01:00
parent 2c6e36e89d
commit 60865f3902
10 changed files with 155 additions and 23 deletions

View File

@@ -27,6 +27,8 @@ PR_INFLIGHT = 4 # only for LN. payment attempt in progress
PR_FAILED = 5 # only for LN. we attempted to pay it, but all attempts failed
PR_ROUTING = 6 # only for LN. *unused* atm.
PR_UNCONFIRMED = 7 # only onchain. invoice is satisfied but tx is not mined yet.
PR_SCHEDULED = 8 # lightning invoice will be paid once channel liquidity is available
pr_color = {
PR_UNPAID: (.7, .7, .7, 1),
@@ -37,6 +39,7 @@ pr_color = {
PR_FAILED: (.9, .2, .2, 1),
PR_ROUTING: (.9, .6, .3, 1),
PR_UNCONFIRMED: (.9, .6, .3, 1),
PR_SCHEDULED: (.9, .6, .3, 1),
}
pr_tooltips = {
@@ -48,6 +51,7 @@ pr_tooltips = {
PR_FAILED:_('Failed'),
PR_ROUTING: _('Computing route...'),
PR_UNCONFIRMED: _('Unconfirmed'),
PR_SCHEDULED: _('Scheduled'),
}
PR_DEFAULT_EXPIRATION_WHEN_CREATING = 24*60*60 # 1 day