Use node configuration for genesis retrieval (#332)

This commit is contained in:
petricadaipegsp 2024-11-06 00:04:05 +01:00 committed by GitHub
parent 50535a4101
commit 07ff232c7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -418,7 +418,7 @@ func main() {
if *core == 0 {
for {
genesis, err := config.DownloadAndVerifyGenesis(*network)
genesis, err := config.DownloadAndVerifyGenesis(uint(nodeConfig.P2P.Network))
if err != nil {
time.Sleep(10 * time.Minute)
continue