From e740604f608a05367a6349b6c44b985fda25306d Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Sat, 22 Jun 2019 14:34:58 +0200 Subject: [PATCH] No need for zero initialization of devnet params --- src/chainparams.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/chainparams.cpp b/src/chainparams.cpp index edaead132..7d605c32e 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -871,12 +871,6 @@ std::unique_ptr CreateChainParams(const std::string& chain) void SelectParams(const std::string& network) { - if (network == CBaseChainParams::DEVNET) { - devNetParams = (CDevNetParams*)new uint8_t[sizeof(CDevNetParams)]; - memset(devNetParams, 0, sizeof(CDevNetParams)); - new (devNetParams) CDevNetParams(); - } - SelectBaseParams(network); globalChainParams = CreateChainParams(network); }