protected override void SetTarget(ConsensusOrVote candidate) { Consensus consensus = candidate as Consensus; if (null != _target) { Helpers.WTF(); } if (null == consensus) { Helpers.WTF(); } _target = consensus; return; }
internal OnionRouter(ConsensusOrVote consensus, string name, string identityFingerprint, string digest, DateTime publishedAt, IPAddress ipAddress, ushort orPort, ushort dirPort, byte[] onion_key = null, byte[] signing_key = null, byte[] service_key = null) { if (string.IsNullOrEmpty(identityFingerprint)) { throw new ArgumentNullException(); } Owner = consensus; Name = name; IPAddress = ipAddress; ORPort = orPort; DirPort = dirPort; IdentityFingerprint = identityFingerprint; Flags = 0; _onion_key = onion_key; _signing_key = signing_key; _service_key = service_key; return; }