Skip to content

Commit a294c9c

Browse files
Made MemoryStore the default whithout config.json for neo-cli (neo-project#3085)
* Made MemoryStore the default for `neo-cli` * Remove nullable Engine --------- Co-authored-by: Shargon <shargon@gmail.com>
1 parent 3d0d27e commit a294c9c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Neo.CLI/Settings.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
using Microsoft.Extensions.Configuration;
1313
using Neo.Network.P2P;
14+
using Neo.Persistence;
1415
using System;
1516
using System.Threading;
1617

@@ -77,13 +78,13 @@ public LoggerSettings(IConfigurationSection section)
7778

7879
public class StorageSettings
7980
{
80-
public string Engine { get; } = string.Empty;
81+
public string Engine { get; } = nameof(MemoryStore);
8182
public string Path { get; } = string.Empty;
8283

8384
public StorageSettings(IConfigurationSection section)
8485
{
85-
Engine = section.GetValue(nameof(Engine), "LevelDBStore")!;
86-
Path = section.GetValue(nameof(Path), "Data_LevelDB_{0}")!;
86+
Engine = section.GetValue(nameof(Engine), nameof(MemoryStore))!;
87+
Path = section.GetValue(nameof(Path), string.Empty)!;
8788
}
8889
}
8990

0 commit comments

Comments
 (0)