lnwallet: add CommitFee field to OpenChannel
In order to cleanly handle shutdowns and restarts during state machine operation, the fee for the current commitment transaction must be persisted. This allows the fee to be reapplied when the current state is reloaded.
This commit is contained in:
1 parent
7768415adc
commit
320bed7e6b
3 files changed
+90
-7
No files matched your search
@@ -215,6 +215,7 @@ func NewChannelReservation(capacity, fundingAmt btcutil.Amount, minFeeRate btcut
|
||||
TheirBalance: theirBalance,
|
||||
MinFeePerKb: minFeeRate,
|
||||
Db: wallet.ChannelDB,
|
||||
CommitFee: commitFee,
|
||||
},
|
||||
numConfsToOpen: numConfs,
|
||||
pushSat: pushSat,
|
||||
|
||||
Reference in new issue
Block a user