示例#1
0
 public bool Equals(Crosslink?other)
 {
     return(!(other is null) &&
            Shard == other.Shard &&
            StartEpoch == other.StartEpoch &&
            EndEpoch == other.EndEpoch &&
            DataRoot.Equals(other.DataRoot) &&
            ParentRoot.Equals(other.ParentRoot));
 }
示例#2
0
        public bool Equals(BeaconBlockHeader other)
        {
            if (ReferenceEquals(other, null))
            {
                return(false);
            }

            if (ReferenceEquals(other, this))
            {
                return(true);
            }

            return(BodyRoot.Equals(other.BodyRoot) &&
                   ParentRoot.Equals(other.ParentRoot) &&
                   Slot == other.Slot &&
                   StateRoot.Equals(other.StateRoot));
        }