channeldb: persist numConfsRequired in OpenChannel.
When a pending channel is persisted and then reloaded upon system startup it's necessary to also persist the number of confirmations that will be required before the pending channel can be opened.
This commit is contained in:
1 parent
0dd6cb99c1
commit
59763ebc7e
3 files changed
+21
No files matched your search
@@ -541,6 +541,7 @@ func (l *LightningWallet) handleFundingReserveRequest(req *initFundingReserveMsg
|
||||
reservation.nodeAddr = req.nodeAddr
|
||||
reservation.ourContribution.CsvDelay = req.csvDelay
|
||||
|
||||
reservation.partialState.NumConfsRequired = req.numConfs
|
||||
reservation.partialState.IdentityPub = req.nodeID
|
||||
reservation.partialState.LocalCsvDelay = req.csvDelay
|
||||
reservation.partialState.OurDustLimit = req.ourDustLimit
|
||||
|
||||
Reference in new issue
Block a user