Skip to content

Commit

Permalink
rpcserver: properly limit min channel size
Browse files Browse the repository at this point in the history
  • Loading branch information
Roasbeef committed Jan 17, 2017
1 parent 7312565 commit 440cf6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 440cf6f

Please sign in to comment.