public static VersionPayload ConstructVersionPayload(IPEndPoint localEndPoint, IPEndPoint remoteEndPoint, UInt64 nodeId, UInt32 startBlockHeight)
{
return new VersionPayload
(
ProtocolVersion: PROTOCOL_VERSION,
ServicesBitfield: SERVICES_BITFIELD,
Time: DateTimeOffset.Now, //TODO
RemoteAddress: ConstructNetworkAddress(remoteEndPoint.Address, remoteEndPoint.Port),
LocalAddress: ConstructNetworkAddress(localEndPoint.Address, port: localEndPoint.Port),
Nonce: nodeId,
UserAgent: USER_AGENT,
StartBlockHeight: startBlockHeight,
Relay: false //TODO
);
}