Skip to content

Commit 1cd0f9e

Browse files
flcl42stdevMac
authored andcommitted
Ensure ForkInfo is initialized (#9233)
Ensure ForkInfo was initialized
1 parent 909a75a commit 1cd0f9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Nethermind/Nethermind.Network/ForkInfo.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ public ValidationResult ValidateForkId(ForkId peerId, BlockHeader? head)
141141

142142
public ForkActivationsSummary GetForkActivationsSummary(BlockHeader? head)
143143
{
144+
EnsureInitialized();
145+
144146
ForkActivation headActivation = new(head?.Number ?? 0, head?.Number == 0 ? 0 : head?.Timestamp ?? 0);
145147

146148
int indexOfActive = Forks.Length - 1;

0 commit comments

Comments
 (0)