-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding MOL blockchain #423
Merged
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
c557e39
readme
stepkillah f33f466
Merge branch 'master' of https://github.com/block-core/blockcore
stepkillah fd9b443
added impleum network
stepkillah 9e8e1a1
build removed
stepkillah 0f29ad3
build removed
stepkillah 4671d77
Merged with blockcore
stepkillah ea11673
Impleum network new settings prepared
stepkillah 3b5673b
merged
stepkillah a8c44ee
Merged with blockcore. Fixing Impleum network params
stepkillah 181554c
Impleum update mamx supply
stepkillah 68a56d7
Impleum magic comment added
stepkillah 6fc8d63
temporary remove workflows
stepkillah 3afb6d2
Fix for impleum bad address
stepkillah 6315df9
Update DNSSeedData
shtah eb737c4
Updates static Nodes
shtah 4759a9f
Update ImpleumSetup.cs
shtah 8c938a2
Update ImpleumSetup.cs
shtah 6948b43
Update ImpleumSetup.cs
shtah 4b0bd52
Upate MinTxFee
shtah a538fd7
Upate MinTxFee TestNet
shtah 657dc6d
Upate MinTxFee TestNet
shtah 35f1510
Impleum: Fix for MaxTxFee
stepkillah 506673b
Merge branch 'master' of https://github.com/block-core/blockcore
stepkillah c1c3609
fix bip 9 deployments
stepkillah e43df82
Ass mainnet nodes
shtah 7a58de9
Add mainnet nodes
shtah 78ffbda
cd /Users/elenabulanova/IMPL/D/ddd/blockcore
d3b3006
Workflows add
a6a2267
Fix DefaultThreshold
stepkillah 8e323b2
Merge branch 'master' of https://github.com/block-core/blockcore
stepkillah 2d4bfc1
Update ImpleumSetup.cs
shtah 74036e4
Add IMPLX seed Nodes
shtah 860513e
Add checkpoints for City Chain network
5bbc9f4
merged
stepkillah c777232
Merge branch 'master' of https://github.com/block-core/blockcore
stepkillah 14377d1
Merge branch 'master' of https://github.com/block-core/blockcore
stepkillah 2ebf3c3
Added Tech Molie network
stepkillah af6cbc6
Merge branch 'master' of https://github.com/block-core/blockcore
stepkillah 485d97d
fix MOL commandline arg
stepkillah f9d0a59
MOL checkpoints
stepkillah c32d442
Blockore merge
yuriibulakh e455e78
Merge branch 'master' of https://github.com/impleum/blockcore
yuriibulakh 7bded37
Add Molie network to Network folder
miladsoft 46088ab
Update launchSettings.json
shtah fe34c98
Merge pull request #1 from miladsoft/master
shtah d861aa2
Impleum Logo and new IMPLX and MOL Seed Nodes
yuriibulakh a80b7bc
Add IMPL and MOL checkpoints
yuriibulakh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,10 +50,10 @@ internal class Main | |
|
||
public static List<DNSSeedData> DNS = new List<DNSSeedData> | ||
{ | ||
new DNSSeedData("seed1", "mn1.uh420058.ukrdomen.com"), | ||
new DNSSeedData("seed2", "mn2.uh420058.ukrdomen.com"), | ||
new DNSSeedData("seed3", "mn3.uh420058.ukrdomen.com"), | ||
new DNSSeedData("seed4", "mn4.uh420058.ukrdomen.com"), | ||
new DNSSeedData("seed1", "mol.molie.net"), | ||
new DNSSeedData("seed2", "mol1.molie.net"), | ||
new DNSSeedData("seed3", "mol2.molie.net"), | ||
new DNSSeedData("seed4", "mol3.molie.net"), | ||
new DNSSeedData("seed5", "impleum.com"), | ||
new DNSSeedData("seed6", "seed1.impleum.com"), | ||
new DNSSeedData("seed7", "seed2.impleum.com"), | ||
|
@@ -69,7 +69,7 @@ internal class Main | |
|
||
public static Dictionary<int, CheckpointInfo> Checkpoints = new Dictionary<int, CheckpointInfo> | ||
{ | ||
{ 0, new CheckpointInfo(new uint256("0x000002e1a5c2361c43f5d76b7d77cd52c2866b391c59867ad79de49795ed7361"), new uint256("0x0000000000000000000000000000000000000000000000000000000000000000")) }, | ||
{ 0, new CheckpointInfo(new uint256("0x000002e1a5c2361c43f5d76b7d77cd52c2866b391c59867ad79de49795ed7361"), new uint256("0x0000000000000000000000000000000000000000000000000000000000000000")) }, | ||
{ 675, new CheckpointInfo(new uint256("0x228fe79897e110963fb1c39fc87f8627b51b37151d2184178139960b9ddc902a"), new uint256("0xb6191b4b733d38c0d3a7d1bcf95009bc8b173fc9dd435165bf08cde2eef33918")) }, | ||
{ 1000, new CheckpointInfo(new uint256("0x6637657c16eb9ce7b99d09f41c0e12054dc0c47fd566f69af7778770bd5107f9"), new uint256("0x00eb64d91bb3dade131e3baf57fd40120586c0b08eea1852a2268b4eb4d87787")) }, | ||
{ 1500, new CheckpointInfo(new uint256("0x21215e41cfa79a83b32c34419c9ff24712d5be48e2753ea58c80422432198f93"), new uint256("0x23e3130f9b7d4101a129c03792ac565f0850a6df475ac59bae77ae4761c6dc98")) }, | ||
|
@@ -80,7 +80,18 @@ internal class Main | |
{ 20000, new CheckpointInfo(new uint256("0xb24fca13c138617da441b4a983e582557cda12fb778d7fae0994af01e3f3d252"), new uint256("0x35c3f5856f36fdc43ee7da31530e649966b924cf59e1fddd87d7ed7837b63073")) }, | ||
{ 30000, new CheckpointInfo(new uint256("0x8e7f225cb9eed57d578a6edf98a61f4120d20f0b41032eef35b557c2ae3b1c5e"), new uint256("0xd204fc2c31a15f5e3c02a178d100d88d1c10d21087c7a321594590f471ea6e51")) }, | ||
{ 50000, new CheckpointInfo(new uint256("0x6d0541ad988fb15b9b59a291f0beca1cd147dcc60e7503d4610f21aedeee4053"), new uint256("0x9fdfb977228155cb14c814e463f6280ece1961e873165dd9eadabbc523ee35fe")) }, | ||
{ 70000, new CheckpointInfo(new uint256("0x3f3d906896235395d6e203a1967875ba9408cc56d9a49b75503ef507712a7642"), new uint256("0x989fe82bec93afd796121443e62dab9a20fdb81764f5b52fceff05b05b4a781a")) } | ||
{ 70000, new CheckpointInfo(new uint256("0x3f3d906896235395d6e203a1967875ba9408cc56d9a49b75503ef507712a7642"), new uint256("0x989fe82bec93afd796121443e62dab9a20fdb81764f5b52fceff05b05b4a781a")) }, | ||
{ 100000, new CheckpointInfo(new uint256("0x17ecd5212e991836759d0968195ddc16580813ac13fb0a70b4983f589fb365ee"), new uint256("9d72ec78c445f07aec12c6996eed44363e0c31008517bc78e418ef4a6b5e5677")) }, | ||
{ 150000, new CheckpointInfo(new uint256("0x97681da29d982934108a4668bdcfd6606656e3e5a7bc84f50c64780bd8fe451c"), new uint256("0xa1663164c8ffc87da70754258fe7c8cadd982619d51257df37dc52e8b648f2ad")) }, | ||
{ 200000, new CheckpointInfo(new uint256("0xddd353e1ca10ddc0d0bb42a09e8448e7a08ad7fae954b7358e8a5ecb827a81c9"), new uint256("0xebfafd00ebedabe40401ecaae263b585146c797d33c4c7c793a4233e5c8b88fa")) }, | ||
{ 250000, new CheckpointInfo(new uint256("0x06fea4881b80be581b5876353019dc3e8429c7321c71f2a1d0791ad4d15828e4"), new uint256("0x5d0aa1166d2c83cf8dc73142cb028a26c568b91c14566f35fdfaaba678d1fd99")) }, | ||
{ 300000, new CheckpointInfo(new uint256("0x822e30a8b4ad4b6792c34ffbc397090ca59b52e2ac1cd4299f24afc2ffe38fb2"), new uint256("0x276f1f116a1c5332927a7585859fedadf7cee36099995e7a7b4ee1a19dc048b0")) }, | ||
{ 400000, new CheckpointInfo(new uint256("0x67890776bfe224a098cbf90bb0b7b7e2ffe33acd2c34158a77d462a08f21a751"), new uint256("0x582ee64a508f319c4d9208de1ceb91649cebf8a691b6d95573f1ebb1951c5e31")) }, | ||
{ 500000, new CheckpointInfo(new uint256("0x84b7e38b779365b3daa1d11007bfc4e155022a06da85e1be66885ae5b59aa9bf"), new uint256("0x9fc920ab363e4d916b4060e734de7f9be84dd4777f7b00d059848174381ff5e9")) }, | ||
{ 600000, new CheckpointInfo(new uint256("0xac64cb247ccbc3b4077c7c6489124ec8895ca33dac39ac5ab0c833657e6c9df6"), new uint256("0xe2a8cc402d5f30eaa18f4591533fc17bc0f36874bc52f011723b8f786d4d6022")) }, | ||
{ 700000, new CheckpointInfo(new uint256("0xec96224f7ea2352a158ec3af7415e37e86356951661c6d6456a998b6684c5c91"), new uint256("0xb36136b9a92fe62b8f76dd4d7df59c7ca85efd49bb8f4154f6b159926c590e7b")) }, | ||
{ 800000, new CheckpointInfo(new uint256("0x8c72571334c5ed51e9332e1ba457cff5c920d54ef9b92a36602a350ca326790d"), new uint256("0xdce78ac613c81bc1908defcd674cfe32de5186db7c0635f1789eea7a5f9a0850")) }, | ||
{ 900000, new CheckpointInfo(new uint256("0x9856449c51c92cba7a2d4ee505650b18e044e2eb8b56c300fe5700eabed9049e"), new uint256("0x89d63290966eeca6dca6144672f894bfde5b4894dd89e0f2f7cd8a94f77543de")) } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good with more checkpoints! |
||
}; | ||
} | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions
34
src/Networks/Blockcore.Networks.Molie/Blockcore.Networks.Molie.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<Authors>Blockcore</Authors> | ||
<AssemblyTitle>Blockcore.Networks.Molie</AssemblyTitle> | ||
<AssemblyName>Blockcore.Networks.Molie</AssemblyName> | ||
<PackageId>Blockcore.Networks.Molie</PackageId> | ||
<GeneratePackageOnBuild>False</GeneratePackageOnBuild> | ||
<IsPackable>true</IsPackable> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<LangVersion>latest</LangVersion> | ||
<PackageIcon>icon.png</PackageIcon> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Include="icon.png" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="icon.png"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\Blockcore\Blockcore.csproj" /> | ||
<ProjectReference Include="..\..\Features\Blockcore.Features.Consensus\Blockcore.Features.Consensus.csproj" /> | ||
<ProjectReference Include="..\..\Features\Blockcore.Features.MemoryPool\Blockcore.Features.MemoryPool.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
58 changes: 58 additions & 0 deletions
58
src/Networks/Blockcore.Networks.Molie/Deployments/MolieBIP9Deployments.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
using Blockcore.Base.Deployments; | ||
using Blockcore.Consensus.ScriptInfo; | ||
using Blockcore.Consensus.TransactionInfo; | ||
|
||
namespace Blockcore.Networks.Molie.Deployments | ||
{ | ||
/// <summary> | ||
/// BIP9 deployments for the Blockcore sample coin network. | ||
/// </summary> | ||
public class MolieBIP9Deployments : BIP9DeploymentsArray | ||
{ | ||
// The position of each deployment in the deployments array. Note that this is decoupled from the actual position of the flag bit for the deployment in the block version. | ||
public const int CSV = 0; | ||
public const int Segwit = 1; | ||
public const int ColdStaking = 2; // TODO: Move this to the end of the deployments to leave room for others from Bitcoin? | ||
|
||
// The number of deployments. | ||
public const int NumberOfDeployments = 3; | ||
|
||
/// <summary> | ||
/// Constructs the BIP9 deployments array. | ||
/// </summary> | ||
public MolieBIP9Deployments() : base(NumberOfDeployments) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Gets the deployment flags to set when the deployment activates. | ||
/// </summary> | ||
/// <param name="deployment">The deployment number.</param> | ||
/// <returns>The deployment flags.</returns> | ||
public override BIP9DeploymentFlags GetFlags(int deployment) | ||
{ | ||
// The flags get combined in the caller, so it is ok to make a fresh object here. | ||
var flags = new BIP9DeploymentFlags(); | ||
|
||
switch (deployment) | ||
{ | ||
case ColdStaking: | ||
flags.ScriptFlags = ScriptVerify.CheckColdStakeVerify; | ||
break; | ||
|
||
case CSV: | ||
// Start enforcing BIP68 (sequence locks), BIP112 (CHECKSEQUENCEVERIFY) and BIP113 (Median Time Past) using versionbits logic. | ||
flags.ScriptFlags = ScriptVerify.CheckSequenceVerify; | ||
flags.LockTimeFlags = Transaction.LockTimeFlags.VerifySequence | Transaction.LockTimeFlags.MedianTimePast; | ||
break; | ||
|
||
case Segwit: | ||
// Start enforcing WITNESS rules using versionbits logic. | ||
flags.ScriptFlags = ScriptVerify.Witness; | ||
break; | ||
} | ||
|
||
return flags; | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about IP seeds? If there are DNS issues, the clients won't be able to connect anywhere.