Add TTD to Sepolia chain config (#1798)

* Add TTD to Sepolia chain config

* Fix chain config
This commit is contained in:
andri lim 2023-10-03 14:31:31 +07:00 committed by GitHub
parent ea2b5b4c7e
commit e7d82417d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -465,6 +465,7 @@ proc chainConfigForNetwork*(id: NetworkId): ChainConfig =
shanghaiTime: some(1_678_832_736.fromUnix) shanghaiTime: some(1_678_832_736.fromUnix)
) )
of SepoliaNet: of SepoliaNet:
const sepoliaTTD = parse("17000000000000000",UInt256)
ChainConfig( ChainConfig(
consensusType: ConsensusType.POW, consensusType: ConsensusType.POW,
chainId: SepoliaNet.ChainId, chainId: SepoliaNet.ChainId,
@ -481,6 +482,7 @@ proc chainConfigForNetwork*(id: NetworkId): ChainConfig =
muirGlacierBlock: some(0.toBlockNumber), muirGlacierBlock: some(0.toBlockNumber),
berlinBlock: some(0.toBlockNumber), berlinBlock: some(0.toBlockNumber),
londonBlock: some(0.toBlockNumber), londonBlock: some(0.toBlockNumber),
terminalTotalDifficulty: some(sepoliaTTD),
shanghaiTime: some(1_677_557_088.fromUnix) shanghaiTime: some(1_677_557_088.fromUnix)
) )
else: else: