Пример #1
0
        public static List <byte[]> getHiddenMatchAddresses()
        {
            if (cachedHiddenMatchAddresses != null)
            {
                return(cachedHiddenMatchAddresses);
            }

            lock (friends)
            {
                if (friends.Count() == 0)
                {
                    return(null);
                }

                AddressClient ac = new AddressClient();
                foreach (var friend in friends)
                {
                    if (friend.approved)
                    {
                        ac.addAddress(friend.walletAddress);
                    }
                }

                Random rnd = new Random();
                cachedHiddenMatchAddresses = ac.generateHiddenMatchAddresses(rnd, CoreConfig.matcherBytesPerAddress);

                return(cachedHiddenMatchAddresses);
            }
        }