diff --git a/src/node/LibplanetConsole.Nodes/Node.cs b/src/node/LibplanetConsole.Nodes/Node.cs index 5c631dad..f43a9cf1 100644 --- a/src/node/LibplanetConsole.Nodes/Node.cs +++ b/src/node/LibplanetConsole.Nodes/Node.cs @@ -62,7 +62,7 @@ public Node(IServiceProvider serviceProvider, ApplicationOptions options, ILogge { GenesisOptions = new GenesisOptions { - GenesisKey = (AppPrivateKey)BlockChainUtility.AppProtocolKey, + GenesisKey = new(), GenesisValidators = options.GenesisValidators, Timestamp = DateTimeOffset.UtcNow, }, @@ -429,8 +429,10 @@ void IActionRenderer.RenderBlockEnd(Block oldTip, Block newTip) private static IActionLoader[] CollectActionLoaders(IServiceProvider serviceProvider) { - var actionLoaderProviders = serviceProvider.GetService>(); - var actionLoaderList = actionLoaderProviders.Select(item => item.GetActionLoader()).ToList(); + var actionLoaderProviders + = serviceProvider.GetService>(); + var actionLoaderList + = actionLoaderProviders.Select(item => item.GetActionLoader()).ToList(); actionLoaderList.Add(new AssemblyActionLoader(typeof(AssemblyActionLoader).Assembly)); return [.. actionLoaderList]; }