mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-13 11:09:23 +01:00
chainreg+lnd: remove ChannelConstraints from PartialChainControl
This commit is contained in:
parent
7a3101710c
commit
c6ecb10865
2 changed files with 2 additions and 9 deletions
|
@ -166,10 +166,6 @@ type PartialChainControl struct {
|
|||
|
||||
// MinHtlcIn is the minimum HTLC we will accept.
|
||||
MinHtlcIn lnwire.MilliSatoshi
|
||||
|
||||
// ChannelConstraints is the set of default constraints that will be
|
||||
// used for any incoming or outgoing channel reservation requests.
|
||||
ChannelConstraints channeldb.ChannelConstraints
|
||||
}
|
||||
|
||||
// ChainControl couples the three primary interfaces lnd utilizes for a
|
||||
|
@ -715,9 +711,6 @@ func NewPartialChainControl(cfg *Config) (*PartialChainControl, func(), error) {
|
|||
return nil, nil, err
|
||||
}
|
||||
|
||||
// Select the default channel constraints for the primary chain.
|
||||
cc.ChannelConstraints = GenDefaultBtcConstraints()
|
||||
|
||||
return cc, ccCleanup, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -693,7 +693,7 @@ func (d *DefaultWalletImpl) BuildChainControl(
|
|||
FeeEstimator: partialChainControl.FeeEstimator,
|
||||
SecretKeyRing: keyRing,
|
||||
ChainIO: walletController,
|
||||
DefaultConstraints: partialChainControl.ChannelConstraints,
|
||||
DefaultConstraints: chainreg.GenDefaultBtcConstraints(),
|
||||
NetParams: *walletConfig.NetParams,
|
||||
}
|
||||
|
||||
|
@ -808,7 +808,7 @@ func (d *RPCSignerWalletImpl) BuildChainControl(
|
|||
FeeEstimator: partialChainControl.FeeEstimator,
|
||||
SecretKeyRing: rpcKeyRing,
|
||||
ChainIO: walletController,
|
||||
DefaultConstraints: partialChainControl.ChannelConstraints,
|
||||
DefaultConstraints: chainreg.GenDefaultBtcConstraints(),
|
||||
NetParams: *walletConfig.NetParams,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue