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); }
public bool Equals(HistoricalBatch other) { return(BlockRoots.SequenceEqual(other.BlockRoots) && StateRoots.SequenceEqual(other.StateRoots)); }