From c6db2164d16b3f3aabba54f7468ed424fb2ea962 Mon Sep 17 00:00:00 2001 From: Fernando Diaz Toledano Date: Wed, 27 Nov 2024 08:56:49 +0100 Subject: [PATCH] Fix default logic --- src/Neo/ProtocolSettings.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Neo/ProtocolSettings.cs b/src/Neo/ProtocolSettings.cs index ea8a0c428d..8a251c6b2b 100644 --- a/src/Neo/ProtocolSettings.cs +++ b/src/Neo/ProtocolSettings.cs @@ -17,6 +17,7 @@ using System.Collections.Immutable; using System.IO; using System.Linq; +using static System.Collections.Specialized.BitVector32; namespace Neo { @@ -152,8 +153,10 @@ public static ProtocolSettings Load(string path, bool optional = true) { // Load with default values var configuration = new ConfigurationBuilder().Build(); - var emptySection = configuration.GetSection("EmptySection"); - return Load(emptySection); + var section = configuration.GetSection("EmptySection"); + var settings = Load(section); + CheckingHardfork(settings); + return settings; } else {