Skip to content

Commit

Permalink
Add mainnet check points (#400)
Browse files Browse the repository at this point in the history
* Add MainNet check points

* Fix Tests
  • Loading branch information
fassadlr committed Feb 5, 2021
1 parent b111c9a commit 4886859
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/NBitcoin.Tests/NetworkTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public void StraxMainIsInitializedCorrectly()
{
Network network = this.straxMain;

Assert.Equal(14, network.Checkpoints.Count);
Assert.Equal(15, network.Checkpoints.Count);
Assert.Equal(2, network.DNSSeeds.Count);
Assert.Empty(network.SeedNodes);

Expand Down
3 changes: 2 additions & 1 deletion src/Stratis.Bitcoin.Networks/StraxMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ public StraxMain()
{ 30000, new CheckpointInfo(new uint256("0x4d0f2a809ef915721ced21f5ec51b6177b684eee06cadd49bcedc57daa243b8b"), new uint256("0xd9b7f8c92f289d66cb35a517e0b5c11c3e7e23a6507ce8ba2f042642849dcba0")) },
{ 40000, new CheckpointInfo(new uint256("0xdc10671e67350eda9518b220e329ca9f661cd98c0e12d246471f8ec4f8a81c71"), new uint256("0xeb13622df7b0fc95068c0146d718bb2eaf2fd8943b3bea89396d8d58f5af8c15")) },
{ 50000, new CheckpointInfo(new uint256("0xe3398765bc0da5b481a5dfe60f0acf14f4b1fc8582bab8f7a166317aea9aa026"), new uint256("0x350db25ca3ff01ec589681c94c325f619e5013bdc06efcbefa981776f4dcca4f")) },
{ 60000, new CheckpointInfo(new uint256("0x9cbc20fd1720529c59073ade6f5511ab5c2cf168556c9a10cb41ff9d8dac724f"), new uint256("0xe363394313d2e1af248a1c0d18b79e6074a08884dddbebfca90e8ae716edb645")) }
{ 60000, new CheckpointInfo(new uint256("0x9cbc20fd1720529c59073ade6f5511ab5c2cf168556c9a10cb41ff9d8dac724f"), new uint256("0xe363394313d2e1af248a1c0d18b79e6074a08884dddbebfca90e8ae716edb645")) },
{ 150000, new CheckpointInfo(new uint256("0x48bb4c2f08088da9990e23f19cb4b9a094bdf7791f86f77a98d08e5d2b06c1ce"), new uint256("0x14f80d627e7727f4da4a5945ddb77e2821369246c72f1c6ca754c6509a4eef60")) }
};

this.Bech32Encoders = new Bech32Encoder[2];
Expand Down
2 changes: 1 addition & 1 deletion src/Stratis.Bitcoin.Tests/Consensus/CheckpointsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void GetLastCheckPointHeight_StraxMainnet_ReturnsLastCheckPointHeight()

int result = checkpoints.GetLastCheckpointHeight();

Assert.Equal(60000, result);
Assert.Equal(150000, result);
}

[Fact]
Expand Down
3 changes: 2 additions & 1 deletion src/Stratis.Sidechains.Networks/CirrusMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ public CirrusMain()
{ 1200000, new CheckpointInfo(new uint256("0x8411b830270cc9d6c2e28de1c2e8025c57a5673835f63e30708967adfee5a92c")) },
{ 1300000, new CheckpointInfo(new uint256("0x512c19a8245316b4d3b13513c7901f41842846f539f668ca4ac349daaab6dc20")) },
{ 1400000, new CheckpointInfo(new uint256("0xbfd4a96a6c5250f18bf7c586761256fa5f8753ffa10b24160f0648a452823a95")) },
{ 1500000, new CheckpointInfo(new uint256("0x2a1602877a5231997654bae975223762ee636be2f371cb444b2d3fb564e6989e")) }
{ 1500000, new CheckpointInfo(new uint256("0x2a1602877a5231997654bae975223762ee636be2f371cb444b2d3fb564e6989e")) },
{ 1750000, new CheckpointInfo(new uint256("0x58c96a878efeeffea1b1924b61eed627687900e01588ffaa2f4a161973f01abf")) }
};

this.DNSSeeds = new List<DNSSeedData>
Expand Down

0 comments on commit 4886859

Please sign in to comment.