mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 19:50:36 +00:00
55091456a7
This adds the Gnosis and Chiado configs to the CL. I'm sure there's other things missing too. Any pointers would be appreciated! Currently stuck on: ``` INFO[02-06|14:00:01.421] [Checkpoint Sync] Requesting beacon state uri=https://checkpoint.gnosis.gateway.fm/eth/v2/debug/beacon/states/finalized INFO[02-06|14:00:02.846] [Checkpoint Sync] Retrieving lightclient bootstrap from sentinel root=6cd2f0f4018d7ca17c9bfaf69f7eb46706b5a9b3356b9686aa71ae15a11c47e4 ```
37 lines
1.1 KiB
Go
37 lines
1.1 KiB
Go
/*
|
|
Copyright 2022 Erigon-Lightclient contributors
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
package clparams
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func testConfig(t *testing.T, n NetworkType) {
|
|
genesis, network, beacon := GetConfigsByNetwork(n)
|
|
|
|
require.Equal(t, *genesis, GenesisConfigs[n])
|
|
require.Equal(t, *network, NetworkConfigs[n])
|
|
require.Equal(t, *beacon, BeaconConfigs[n])
|
|
}
|
|
|
|
func TestGetConfigsByNetwork(t *testing.T) {
|
|
testConfig(t, MainnetNetwork)
|
|
testConfig(t, SepoliaNetwork)
|
|
testConfig(t, GoerliNetwork)
|
|
testConfig(t, GnosisNetwork)
|
|
testConfig(t, ChiadoNetwork)
|
|
}
|