You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A lot of types in DotNetLightning are defined as discriminated unions
with a single constructor with the same name as the type. eg:
type NodeId = | NodeId PubKey
This commit redefines these types as:
type NodeId(id: PubKey) = ...
The main motivation for this is that having types and constructors with
the same name breaks the json serialization library on older mono
versions. It can also lead to confusing error messages. Besides that,
it's also somewhat pointless to define a type as a discriminated union
but then only give it one variant.
0 commit comments