paych: Print available amounts in paych status

This commit is contained in:
Łukasz Magiera committed 2022-01-20 18:16:00 +01:00
1 parent 7a938b2dea
commit 8f6f21c94c
4 files changed
+10

No files matched your search

+2
View File
@@ -142,6 +142,8 @@ func (pm *Manager) AvailableFundsByFromTo(ctx context.Context, from address.Addr
To: to,
ConfirmedAmt: types.NewInt(0),
PendingAmt: types.NewInt(0),
AvailableAmt: types.NewInt(0),
PendingAvailableAmt: types.NewInt(0),
PendingWaitSentinel: nil,
QueuedAmt: types.NewInt(0),
VoucherReedeemedAmt: types.NewInt(0),
+2
View File
@@ -340,6 +340,8 @@ func (ca *channelAccessor) currentAvailableFunds(ctx context.Context, channelID
To: channelInfo.to(),
ConfirmedAmt: channelInfo.Amount,
PendingAmt: channelInfo.PendingAmount,
AvailableAmt: channelInfo.AvailableAmount,
PendingAvailableAmt: channelInfo.PendingAvailableAmount,
PendingWaitSentinel: waitSentinel,
QueuedAmt: queuedAmt,
VoucherReedeemedAmt: totalRedeemed,