Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
deffrian committed Oct 6, 2024
1 parent f7b8e32 commit 32cbfa4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/Nethermind/Nethermind.Config/ConfigSourceHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using System.Linq;
using Nethermind.Int256;
using System.Text.Json;
using System.Text.Json.Serialization;
using Nethermind.Core;
using Nethermind.Core.Crypto;
using Nethermind.Core.Extensions;
Expand Down Expand Up @@ -110,7 +109,7 @@ public static object GetDefault(Type type)
return type.IsValueType ? (false, Activator.CreateInstance(type)) : (false, null);
}

public static bool TryFromHex(Type type, string itemValue, out object value)
private static bool TryFromHex(Type type, string itemValue, out object value)
{
if (!itemValue.StartsWith("0x"))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class ChainSpecParametersProvider : IChainSpecParametersProvider
private readonly Dictionary<string, JsonElement> _chainSpecParameters =
new(StringComparer.InvariantCultureIgnoreCase);

private readonly ConcurrentDictionary<Type, IChainSpecEngineParameters> _instances = new();
private readonly Dictionary<Type, IChainSpecEngineParameters> _instances = new();
public string SealEngineType { get; }

public ChainSpecParametersProvider(Dictionary<string, JsonElement> engineParameters)
Expand Down Expand Up @@ -81,7 +81,7 @@ private void InitializeInstances()
}
}

public ICollection<IChainSpecEngineParameters> AllChainSpecParameters => _instances.Values;
public IEnumerable<IChainSpecEngineParameters> AllChainSpecParameters => _instances.Values;

public T GetChainSpecParameters<T>() where T : IChainSpecEngineParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ namespace Nethermind.Specs.ChainSpecStyle;
public interface IChainSpecParametersProvider
{
string SealEngineType { get; }
ICollection<IChainSpecEngineParameters> AllChainSpecParameters { get; }
IEnumerable<IChainSpecEngineParameters> AllChainSpecParameters { get; }
T GetChainSpecParameters<T>() where T : IChainSpecEngineParameters;
}

0 comments on commit 32cbfa4

Please sign in to comment.