示例#1
0
        public bool Equals(HistoricalBatch other)
        {
            for (int i = 0; i < Time.SlotsPerHistoricalRoot; i++)
            {
                if (StateRoots[i] != other.StateRoots[i])
                {
                    return(false);
                }

                if (BlockRoots[i] != other.BlockRoots[i])
                {
                    return(false);
                }
            }

            return(true);
        }
示例#2
0
 public bool Equals(HistoricalBatch other)
 {
     return(BlockRoots.SequenceEqual(other.BlockRoots) &&
            StateRoots.SequenceEqual(other.StateRoots));
 }