Skip to content

Commit

Permalink
Fix default logic
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Nov 27, 2024
1 parent 6c7c89a commit c6db216
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Neo/ProtocolSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
using System.Collections.Immutable;
using System.IO;
using System.Linq;
using static System.Collections.Specialized.BitVector32;

namespace Neo
{
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit c6db216

Please sign in to comment.