Esempio n. 1
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));
        }
Esempio n. 2
0
 public override string ToString()
 {
     return($"S:{Slot} P:{ParentRoot.ToString().Substring(0, 12)} St:{StateRoot.ToString().Substring(0, 12)} Bd:{BodyRoot.ToString().Substring(0, 12)}");
 }
Esempio n. 3
0
 public override string ToString()
 {
     return($"s={Slot}_p={ParentRoot.ToString().Substring(0, 10)}_st={StateRoot.ToString().Substring(0, 10)}_bd={BodyRoot.ToString().Substring(0, 10)}");
 }