Ejemplo n.º 1
0
        //PRI.round: max of parent rounds
        //PRI.isRoot: true if round is taken from a Root
        public async Task <ParentRoundInfo> ParentRound(string x)
        {
            var(c, ok) = ParentRoundCache.Get(x);
            if (ok)
            {
                return(c);
            }

            var pr = await ParentRoundInternal(x);

            ParentRoundCache.Add(x, pr);

            return(pr);
        }
Ejemplo n.º 2
0
        //PRI.round: max of parent rounds
        //PRI.isRoot: true if round is taken from a Root
        public ParentRoundInfo ParentRound(string x)
        {
            var(c, ok) = ParentRoundCache.Get(x);
            if (ok)
            {
                return(c);
            }

            var pr = ParentRoundInternal(x);

            ParentRoundCache.Add(x, pr);

            return(pr);
        }