channeldb+lnwallet: save initial balances during channel opening

This commit is contained in:
yyforyongyu committed 2022-04-20 01:18:12 +08:00
1 parent 291a8e4eff
commit 22f8f6ed4a
3 files changed
+22 -7

No files matched your search

+4 -2
View File
@@ -403,8 +403,10 @@ func NewChannelReservation(capacity, localFundingAmt btcutil.Amount,
FeePerKw: btcutil.Amount(commitFeePerKw),
CommitFee: commitFee,
},
ThawHeight: thawHeight,
Db: wallet.Cfg.Database,
ThawHeight: thawHeight,
Db: wallet.Cfg.Database,
InitialLocalBalance: ourBalance,
InitialRemoteBalance: theirBalance,
},
pushMSat: pushMSat,
pendingChanID: pendingChanID,