public Node(List <NodeId> bootStrapParents, Base.SkynetAndroid skynet) { mSkynet = skynet; startTime = new DateTime(); selfNode = new NodeId { uuid = Guid.NewGuid().ToString(), toxid = skynet.tox.Id.ToString() }; childNodes = new List <NodeId>(); brotherNodes = new List <NodeId>(); nodeChangeLock = new NodeLock { from = null, isLocked = false }; AllLocalNodes.Add(this); if (bootStrapParents != null && bootStrapParents.Count > 0) { Task.Run(async() => { await joinNetByTargetParents(bootStrapParents); }); } }
public Node(Base.SkynetAndroid skynet) : this(new List <NodeId>() { }, skynet) { }