public NetworkPeerConnectionParameters() { this.TemplateBehaviors.Add(new PingPongBehavior()); this.Version = ProtocolVersion.PROTOCOL_VERSION; this.IsRelay = true; this.Services = NetworkPeerServices.Nothing; this.ConnectCancellation = default(CancellationToken); this.ReceiveBufferSize = 1000 * 5000; this.SendBufferSize = 1000 * 1000; this.UserAgent = VersionPayload.GetNBitcoinUserAgent(); this.PreferredTransactionOptions = NetworkOptions.TemporaryOptions; }
public NodeConnectionParameters() { ReuseBuffer = true; TemplateBehaviors.Add(new PingPongBehavior()); Version = ProtocolVersion.PROTOCOL_VERSION; IsRelay = true; Services = NodeServices.Nothing; ConnectCancellation = default(CancellationToken); ReceiveBufferSize = 1000 * 5000; SendBufferSize = 1000 * 1000; UserAgent = VersionPayload.GetNBitcoinUserAgent(); PreferredTransactionOptions = TransactionOptions.All; }
public NodeConnectionParameters() { TemplateBehaviors.Add(new PingPongBehavior()); Version = null; IsRelay = true; Services = NodeServices.Nothing; ConnectCancellation = default(CancellationToken); // Use max supported by MAC OSX Yosemite/Mavericks/Sierra (https://fasterdata.es.net/host-tuning/osx/) ReceiveBufferSize = 1048576; SendBufferSize = 1048576; //////////////////////// UserAgent = VersionPayload.GetNBitcoinUserAgent(); PreferredTransactionOptions = TransactionOptions.All; }
public NetworkPeerConnectionParameters() { this.Version = ProtocolVersion.PROTOCOL_VERSION; this.IsRelay = true; this.Services = NetworkPeerServices.Nothing; this.ConnectCancellation = default(CancellationToken); this.TemplateBehaviors = new List <INetworkPeerBehavior>(); if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) { // Use max supported by MAC OSX Yosemite/Mavericks/Sierra (https://fasterdata.es.net/host-tuning/osx/) this.ReceiveBufferSize = 1048576; this.SendBufferSize = 1048576; } else { this.ReceiveBufferSize = 1000 * 5000; this.SendBufferSize = 1000 * 5000; } this.UserAgent = VersionPayload.GetNBitcoinUserAgent(); this.PreferredTransactionOptions = TransactionOptions.All; this.Nonce = RandomUtils.GetUInt64(); }