chainreg+lnd: remove ChannelConstraints from PartialChainControl

This commit is contained in:
Keagan McClelland 2024-02-02 18:46:24 -08:00
parent 7a3101710c
commit c6ecb10865
2 changed files with 2 additions and 9 deletions

View file

@ -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
}

View file

@ -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,
}