From 45552fd9cc9d9c5e1534de3957a58fc4fb2f3741 Mon Sep 17 00:00:00 2001 From: SondreB Date: Wed, 26 Oct 2022 00:52:12 +0200 Subject: [PATCH] Add support for MOL --- MULTI/src/Blockcore.MultiNode/NetworkSelector.cs | 4 ++++ MULTI/src/Blockcore.MultiNode/NodeBuilder.cs | 1 + .../Blockcore.MultiNode/Properties/launchSettings.json | 8 ++++++++ 3 files changed, 13 insertions(+) diff --git a/MULTI/src/Blockcore.MultiNode/NetworkSelector.cs b/MULTI/src/Blockcore.MultiNode/NetworkSelector.cs index a623843..2faffeb 100644 --- a/MULTI/src/Blockcore.MultiNode/NetworkSelector.cs +++ b/MULTI/src/Blockcore.MultiNode/NetworkSelector.cs @@ -87,6 +87,10 @@ public static NodeSettings Create(string chain, string[] args) case "RSC": nodeSettings = new NodeSettings(networksSelector: Blockcore.Networks.RoyalSportsCity.Networks.Networks.RoyalSportsCity, args: args); break; + + case "MOL": + nodeSettings = new NodeSettings(networksSelector: Blockcore.Networks.Molie.Networks.Molie, args: args); + break; } return nodeSettings; diff --git a/MULTI/src/Blockcore.MultiNode/NodeBuilder.cs b/MULTI/src/Blockcore.MultiNode/NodeBuilder.cs index afa3d96..bbfd86a 100644 --- a/MULTI/src/Blockcore.MultiNode/NodeBuilder.cs +++ b/MULTI/src/Blockcore.MultiNode/NodeBuilder.cs @@ -52,6 +52,7 @@ public static IFullNodeBuilder Create(string chain, NodeSettings settings) case "CY": case "SBC": case "RSC": + case "MOL": nodeBuilder.UsePosConsensus().AddPowPosMining().UseColdStakingWallet(); break; } diff --git a/MULTI/src/Blockcore.MultiNode/Properties/launchSettings.json b/MULTI/src/Blockcore.MultiNode/Properties/launchSettings.json index e152f3e..b29e922 100644 --- a/MULTI/src/Blockcore.MultiNode/Properties/launchSettings.json +++ b/MULTI/src/Blockcore.MultiNode/Properties/launchSettings.json @@ -135,6 +135,14 @@ "RSC (MAIN/LOCAL)": { "commandName": "Project", "commandLineArgs": "--chain=RSC -datadir=data" + }, + "MOL (MAIN)": { + "commandName": "Project", + "commandLineArgs": "--chain=MOL" + }, + "MOL (MAIN/LOCAL)": { + "commandName": "Project", + "commandLineArgs": "--chain=MOL -datadir=data" } } }