@@ -10,6 +10,7 @@ import (
1010
1111 "github.com/ChainSafe/gossamer/chain/kusama"
1212 "github.com/ChainSafe/gossamer/chain/polkadot"
13+ "github.com/ChainSafe/gossamer/chain/westend"
1314 "github.com/ChainSafe/gossamer/dot/state/pruner"
1415 "github.com/ChainSafe/gossamer/dot/types"
1516 "github.com/ChainSafe/gossamer/internal/log"
@@ -361,3 +362,60 @@ func PolkadotConfig() *Config {
361362 },
362363 }
363364}
365+
366+ // WestendConfig returns a "westend" node configuration
367+ func WestendConfig () * Config {
368+ return & Config {
369+ Global : GlobalConfig {
370+ Name : westend .DefaultName ,
371+ ID : westend .DefaultID ,
372+ BasePath : westend .DefaultBasePath ,
373+ LogLvl : westend .DefaultLvl ,
374+ RetainBlocks : westend .DefaultRetainBlocks ,
375+ Pruning : pruner .Mode (westend .DefaultPruningMode ),
376+ MetricsAddress : westend .DefaultMetricsAddress ,
377+ TelemetryURLs : westend .DefaultTelemetryURLs ,
378+ },
379+ Log : LogConfig {
380+ CoreLvl : westend .DefaultLvl ,
381+ DigestLvl : westend .DefaultLvl ,
382+ SyncLvl : westend .DefaultLvl ,
383+ NetworkLvl : westend .DefaultLvl ,
384+ RPCLvl : westend .DefaultLvl ,
385+ StateLvl : westend .DefaultLvl ,
386+ RuntimeLvl : westend .DefaultLvl ,
387+ BlockProducerLvl : westend .DefaultLvl ,
388+ FinalityGadgetLvl : westend .DefaultLvl ,
389+ },
390+ Init : InitConfig {
391+ Genesis : westend .DefaultGenesis ,
392+ },
393+ Account : AccountConfig {
394+ Key : westend .DefaultKey ,
395+ Unlock : westend .DefaultUnlock ,
396+ },
397+ Core : CoreConfig {
398+ Roles : westend .DefaultRoles ,
399+ WasmInterpreter : westend .DefaultWasmInterpreter ,
400+ },
401+ Network : NetworkConfig {
402+ Port : westend .DefaultNetworkPort ,
403+ Bootnodes : westend .DefaultNetworkBootnodes ,
404+ NoBootstrap : westend .DefaultNoBootstrap ,
405+ NoMDNS : westend .DefaultNoMDNS ,
406+ },
407+ RPC : RPCConfig {
408+ Port : westend .DefaultRPCHTTPPort ,
409+ Host : westend .DefaultRPCHTTPHost ,
410+ Modules : westend .DefaultRPCModules ,
411+ WSPort : westend .DefaultRPCWSPort ,
412+ },
413+ Pprof : PprofConfig {
414+ Settings : pprof.Settings {
415+ ListeningAddress : westend .DefaultPprofListeningAddress ,
416+ BlockProfileRate : westend .DefaultPprofBlockRate ,
417+ MutexProfileRate : westend .DefaultPprofMutexRate ,
418+ },
419+ },
420+ }
421+ }
0 commit comments