From 9a5e6c32b626556a69e3b787caa02152b46df10f Mon Sep 17 00:00:00 2001 From: Submodule Updater Date: Tue, 21 Nov 2023 04:17:51 +0000 Subject: [PATCH 1/2] Update NineChronicles.Headless submodule to planetarium/NineChronicles.Headless@78e9be3d0e4277ead502c0b523d223b0cda8f14a This commit was automatically generated by Submodule Updater. --- NineChronicles.Headless | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NineChronicles.Headless b/NineChronicles.Headless index b9522002..78e9be3d 160000 --- a/NineChronicles.Headless +++ b/NineChronicles.Headless @@ -1 +1 @@ -Subproject commit b9522002b24635475fda4b19534e3c4a43dffc3b +Subproject commit 78e9be3d0e4277ead502c0b523d223b0cda8f14a From 7c900bc99c5c2d56c3923a7f85c296b45c50ce9b Mon Sep 17 00:00:00 2001 From: area363 Date: Tue, 21 Nov 2023 13:23:33 +0900 Subject: [PATCH 2/2] update api --- NineChronicles.DataProvider.Executable/Program.cs | 4 ++-- NineChronicles.DataProvider.Tests/TestBase.cs | 2 +- NineChronicles.DataProvider/GraphQLStartup.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/NineChronicles.DataProvider.Executable/Program.cs b/NineChronicles.DataProvider.Executable/Program.cs index 6332aa77..2fa22a04 100644 --- a/NineChronicles.DataProvider.Executable/Program.cs +++ b/NineChronicles.DataProvider.Executable/Program.cs @@ -232,7 +232,7 @@ IActionEvaluatorConfiguration GetActionEvaluatorConfiguration(IConfiguration con RpcRemoteSever = false }, new ConcurrentDictionary(), - new ArenaMemoryCache() + new StateMemoryCache() ); if (headlessConfig.LogActionRenders) @@ -250,7 +250,7 @@ IActionEvaluatorConfiguration GetActionEvaluatorConfiguration(IConfiguration con var stateContext = new StateContext( context.BlockChain!.GetAccountState(context.BlockChain!.Tip.Hash), context.BlockChain!.Tip.Index, - new ArenaMemoryCache() + new StateMemoryCache() ); // ConfigureServices must come before Configure for now diff --git a/NineChronicles.DataProvider.Tests/TestBase.cs b/NineChronicles.DataProvider.Tests/TestBase.cs index 5c61ff3b..efd246ac 100644 --- a/NineChronicles.DataProvider.Tests/TestBase.cs +++ b/NineChronicles.DataProvider.Tests/TestBase.cs @@ -51,7 +51,7 @@ protected TestBase() { KeyStore = keyStore, }; - var stateContext = new StateContext(GetMockState(), 0L, new ArenaMemoryCache()); + var stateContext = new StateContext(GetMockState(), 0L, new StateMemoryCache()); services .AddSingleton(standaloneContext) .AddSingleton(stateContext) diff --git a/NineChronicles.DataProvider/GraphQLStartup.cs b/NineChronicles.DataProvider/GraphQLStartup.cs index 50661c6b..fae9376e 100644 --- a/NineChronicles.DataProvider/GraphQLStartup.cs +++ b/NineChronicles.DataProvider/GraphQLStartup.cs @@ -44,7 +44,7 @@ public void ConfigureServices(IServiceCollection services) .AddGraphTypes(typeof(StandaloneSchema)) .AddLibplanetExplorer() .AddUserContextBuilder(); - services.AddSingleton(); + services.AddSingleton(); services.AddGraphTypes(); services.AddSingleton(); services.AddSingleton();