-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for holesky and custom network
- Loading branch information
Showing
16 changed files
with
226 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
namespace Lantern.Beacon.Sync.Config; | ||
|
||
public class ConfigSettings | ||
{ | ||
public int MinGenesisTime { get; set; } | ||
|
||
public int GenesisDelay { get; set; } | ||
|
||
public int SecondsPerSlot { get; set; } | ||
|
||
public int TimeToFirstByteTimeout { get; set; } | ||
|
||
public int RespTimeout { get; set; } | ||
|
||
public int AttestationSubnetCount { get; set; } | ||
|
||
public int SyncCommitteeSubnetCount { get; set; } | ||
|
||
public int GossipMaxSize { get; set; } | ||
|
||
public int MaxRequestLightClientUpdates { get; set; } | ||
|
||
public uint GenesisForkVersion { get; set; } | ||
|
||
public uint AltairForkVersion { get; set; } | ||
|
||
public uint AltairForkEpoch { get; set; } | ||
|
||
public uint BellatrixForkVersion { get; set; } | ||
|
||
public uint BellatrixForkEpoch { get; set; } | ||
|
||
public uint CapellaForkVersion { get; set; } | ||
|
||
public uint CapellaForkEpoch { get; set; } | ||
|
||
public uint DenebForkVersion { get; set; } | ||
|
||
public uint DenebForkEpoch { get; set; } | ||
|
||
public uint ElectraForkVersion { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
namespace Lantern.Beacon.Sync.Config; | ||
|
||
public class HoleskyConfig | ||
{ | ||
public const int MinGenesisTime = 1695902100; | ||
|
||
public const int GenesisDelay = 300; | ||
|
||
public const int SecondsPerSlot = 12; | ||
|
||
public const int TimeToFirstByteTimeout = 5; | ||
|
||
public const int RespTimeout = 10; | ||
|
||
public const int AttestationSubnetCount = 64; | ||
|
||
public const int SyncCommitteeSubnetCount = 4; | ||
|
||
public const int GossipMaxSize = 10485760; | ||
|
||
public const int MaxRequestLightClientUpdates = 128; | ||
|
||
public const uint GenesisForkVersion = 0x01017000; | ||
|
||
public const uint AltairForkVersion = 0x02017000; | ||
|
||
public const uint AltairForkEpoch = 0; | ||
|
||
public const uint BellatrixForkVersion = 0x03017000; | ||
|
||
public const uint BellatrixForkEpoch = 0; | ||
|
||
public const uint CapellaForkVersion = 0x04017000; | ||
|
||
public const uint CapellaForkEpoch = 256; | ||
|
||
public const uint DenebForkVersion = 0x05017000; | ||
|
||
public const uint DenebForkEpoch = 29696; | ||
|
||
public const uint ElectraForkVersion = 0x05000000; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/Lantern.Beacon.Sync/Presets/Holesky/AltairPresetValues.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Lantern.Beacon.Sync.Presets.Holesky; | ||
|
||
public class AltairPresetValues | ||
{ | ||
public const int SyncCommitteeSize = 512; | ||
|
||
public const int EpochsPerSyncCommitteePeriod = 256; | ||
|
||
public const int MinSyncCommitteeParticipants = 1; | ||
} |
6 changes: 6 additions & 0 deletions
6
src/Lantern.Beacon.Sync/Presets/Holesky/Phase0PresetValues.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Lantern.Beacon.Sync.Presets.Holesky; | ||
|
||
public class Phase0PresetValues | ||
{ | ||
public const int SlotsPerEpoch = 32; | ||
} |
6 changes: 0 additions & 6 deletions
6
src/Lantern.Beacon.Sync/Presets/Mainnet/BellatrixPresetValues.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
namespace Lantern.Beacon.Sync.Presets.Minimal; | ||
|
||
public static class Phase0PresetValues | ||
public class Phase0PresetValues | ||
{ | ||
public const int SlotsPerEpoch = 8; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace Lantern.Beacon.Sync.Presets; | ||
|
||
public class PresetSettings | ||
{ | ||
public int SlotsPerEpoch { get; set; } | ||
|
||
public int SyncCommitteeSize { get; set; } | ||
|
||
public int EpochsPerSyncCommitteePeriod { get; set; } | ||
|
||
public int MinSyncCommitteeParticipants { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Lantern.Beacon.Sync.Types; | ||
|
||
public enum NetworkType | ||
{ | ||
Mainnet, | ||
Holesky, | ||
Custom | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters