Example #1
0
 /// <summary>
 /// Replace the <see cref="BlockHeader"/> with a new provided header.
 /// </summary>
 /// <param name="newHeader">The new header to set.</param>
 /// <remarks>Use this method very carefully because it could cause race conditions if used at the wrong moment.</remarks>
 public void SetHeader(ProvenBlockHeader newHeader)
 {
     this.ProvenBlockHeader = newHeader;
 }
 public ChainedHeader(ProvenBlockHeader header, uint256 headerHash, ChainedHeader previous) : this(header.PosBlockHeader, headerHash, previous)
 {
     // This override is to support proven headers
 }