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:
bryanvu authored and Olaoluwa Osuntokun committed 2017-05-15 20:26:11 -07:00
1 parent 7768415adc
commit 320bed7e6b
3 files changed
+90 -7

No files matched your search

+1
View File
@@ -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,