-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* readme * added impleum network * build removed * build removed * Impleum network new settings prepared * Merged with blockcore. Fixing Impleum network params * Impleum update mamx supply * Impleum magic comment added * temporary remove workflows * Fix for impleum bad address * Update DNSSeedData * Updates static Nodes * Update ImpleumSetup.cs * Update ImpleumSetup.cs * Update ImpleumSetup.cs * Upate MinTxFee * Upate MinTxFee TestNet * Upate MinTxFee TestNet * Impleum: Fix for MaxTxFee * fix bip 9 deployments * Ass mainnet nodes * Add mainnet nodes * cd /Users/elenabulanova/IMPL/D/ddd/blockcore * Workflows add * Fix DefaultThreshold * Update ImpleumSetup.cs * Add IMPLX seed Nodes * Add checkpoints for City Chain network * Added Tech Molie network * fix MOL commandline arg * MOL checkpoints * Blockore merge * Add Molie network to Network folder * Update launchSettings.json * Impleum Logo and new IMPLX and MOL Seed Nodes * Add IMPL and MOL checkpoints Co-authored-by: Anton Yaroshenko <kpakadijl@hotmail.com> Co-authored-by: Elena Bulanova <elenabulanova@MacBook-Pro-Elena-2.local> Co-authored-by: Yurii Bulakh <yuriy.bulah@iMac.local> Co-authored-by: yuriy.bulah <yuriy.bulah@gmail.com> Co-authored-by: Milad <miladsoft@yahoo.com>
- Loading branch information
1 parent
7d63323
commit 91eaea8
Showing
18 changed files
with
954 additions
and
29 deletions.
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
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.