mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-26 08:55:59 +01:00
rpcserver: properly limit min channel size
This commit is contained in:
parent
7312565644
commit
440cf6f956
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ func (r *rpcServer) OpenChannel(in *lnrpc.OpenChannelRequest,
|
|||
// channnel size that allows us to safely sit above the dust threshold
|
||||
// after fees are applied
|
||||
// TODO(roasbeef): remove after dynamic fees are in
|
||||
if localFundingAmt > minChannelSize {
|
||||
if localFundingAmt < minChannelSize {
|
||||
return fmt.Errorf("channel is too small, the minimum channel "+
|
||||
"size is: %v (6k sat)", minChannelSize)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue