public void CanSaveChain() { ConcurrentChain chain = new ConcurrentChain(Network.Main); AppendBlock(chain); AppendBlock(chain); var fork = AppendBlock(chain); AppendBlock(chain); var chain2 = new ConcurrentChain(chain.ToBytes()); Assert.True(chain.SameTip(chain2)); }
public void CanSaveChain() { var chain = new ConcurrentChain(Network.Main); this.AppendBlock(chain); this.AppendBlock(chain); ChainedHeader fork = this.AppendBlock(chain); this.AppendBlock(chain); var chain2 = new ConcurrentChain(chain.ToBytes()); Assert.True(chain.SameTip(chain2)); }