diff --git a/src/Neo/SmartContract/Native/NativeContract.cs b/src/Neo/SmartContract/Native/NativeContract.cs index 3be9028185..85a58033a9 100644 --- a/src/Neo/SmartContract/Native/NativeContract.cs +++ b/src/Neo/SmartContract/Native/NativeContract.cs @@ -290,8 +290,8 @@ internal bool IsInitializeBlock(ProtocolSettings settings, uint index, [NotNullW { if (!settings.Hardforks.TryGetValue(hf, out var activeIn)) { - // If is not set in the configuration is treated as enabled from the genesis - activeIn = 0; + // If hf is not set in the configuration (with EnsureOmmitedHardforks applied over it), it is treated as disabled. + continue; } if (activeIn == index)