mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-09 12:31:21 +00:00
ebe63cfa30
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
22 lines
514 B
Go
22 lines
514 B
Go
package clparams
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func testConfig(t *testing.T, n NetworkType) {
|
|
genesis, network, beacon := GetConfigsByNetwork(MainnetNetwork)
|
|
|
|
require.Equal(t, *genesis, GenesisConfigs[MainnetNetwork])
|
|
require.Equal(t, *network, NetworkConfigs[MainnetNetwork])
|
|
require.Equal(t, *beacon, BeaconConfigs[MainnetNetwork])
|
|
}
|
|
|
|
func TestGetConfigsByNetwork(t *testing.T) {
|
|
testConfig(t, MainnetNetwork)
|
|
testConfig(t, SepoliaNetwork)
|
|
testConfig(t, GoerliNetwork)
|
|
}
|