lnwallet: update funding flow to use new channeldb API's
This commit is contained in:
2 files changed
+31
-21
No files matched your search
+18
-10
@@ -205,16 +205,24 @@ func NewChannelReservation(capacity, fundingAmt, feePerKw btcutil.Amount,
|
||||
ChannelConfig: &channeldb.ChannelConfig{},
|
||||
},
|
||||
partialState: &channeldb.OpenChannel{
|
||||
ChainHash: *chainHash,
|
||||
Db: wallet.Cfg.Database,
|
||||
Capacity: capacity,
|
||||
IsInitiator: initiator,
|
||||
IsPending: true,
|
||||
ChanType: chanType,
|
||||
LocalBalance: ourBalance,
|
||||
RemoteBalance: theirBalance,
|
||||
FeePerKw: feePerKw,
|
||||
CommitFee: commitFee,
|
||||
ChanType: chanType,
|
||||
ChainHash: *chainHash,
|
||||
IsPending: true,
|
||||
IsInitiator: initiator,
|
||||
Capacity: capacity,
|
||||
LocalCommitment: channeldb.ChannelCommitment{
|
||||
LocalBalance: ourBalance,
|
||||
RemoteBalance: theirBalance,
|
||||
FeePerKw: feePerKw,
|
||||
CommitFee: commitFee,
|
||||
},
|
||||
RemoteCommitment: channeldb.ChannelCommitment{
|
||||
LocalBalance: ourBalance,
|
||||
RemoteBalance: theirBalance,
|
||||
FeePerKw: feePerKw,
|
||||
CommitFee: commitFee,
|
||||
},
|
||||
Db: wallet.Cfg.Database,
|
||||
},
|
||||
pushMSat: pushMSat,
|
||||
reservationID: id,
|
||||
|
||||
Reference in new issue
Block a user