mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
funding: properly set auxiliary channel recovery info in close chan summaries
This commit is contained in:
parent
b06dabfcb9
commit
c37c9db2de
1 changed files with 18 additions and 8 deletions
|
@ -526,7 +526,12 @@ func (f *fundingManager) Start() error {
|
|||
ChainHash: ch.ChainHash,
|
||||
ChanPoint: ch.FundingOutpoint,
|
||||
RemotePub: ch.IdentityPub,
|
||||
Capacity: ch.Capacity,
|
||||
SettledBalance: ch.LocalBalance,
|
||||
CloseType: channeldb.FundingCanceled,
|
||||
RemoteCurrentRevocation: ch.RemoteCurrentRevocation,
|
||||
RemoteNextRevocation: ch.RemoteNextRevocation,
|
||||
LocalChanConfig: ch.LocalChanCfg,
|
||||
}
|
||||
|
||||
if err := ch.CloseChannel(closeInfo); err != nil {
|
||||
|
@ -1376,6 +1381,11 @@ func (f *fundingManager) handleFundingCreated(fmsg *fundingCreatedMsg) {
|
|||
ChainHash: completeChan.ChainHash,
|
||||
RemotePub: completeChan.IdentityPub,
|
||||
CloseType: channeldb.FundingCanceled,
|
||||
Capacity: completeChan.Capacity,
|
||||
SettledBalance: completeChan.LocalBalance,
|
||||
RemoteCurrentRevocation: completeChan.RemoteCurrentRevocation,
|
||||
RemoteNextRevocation: completeChan.RemoteNextRevocation,
|
||||
LocalChanConfig: completeChan.LocalChanCfg,
|
||||
}
|
||||
|
||||
if err := completeChan.CloseChannel(closeInfo); err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue