Skip to content

Commit

Permalink
rpcserver: roll back #330
Browse files Browse the repository at this point in the history
To fix an accidental market segregation for lnd 0.14.x users that didn't
set an explicit channel type in their bid orders, we roll back the
changes from #330.
We can re-enable this default value selection once a large number of ask
orders support the new channel type.
  • Loading branch information
guggero committed Apr 11, 2022
1 parent ee7924f commit bf74283
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,13 @@ func (s *rpcServer) SubmitOrder(ctx context.Context,
s.server.lndServices.Version, scriptEnforceVersion,
)
if verErr == nil {
return order.ChannelTypeScriptEnforced
// TODO(guggero): Use order.ChannelTypeScriptEnforced
// here as soon as a large percentage of ask orders
// support script enforced channel types to not cause a
// market segregation for lnd 0.14.x or later users
// without them being aware of why their bids aren't
// getting matched.
return order.ChannelTypePeerDependent
}

return order.ChannelTypePeerDependent
Expand Down

0 comments on commit bf74283

Please sign in to comment.