No need for zero initialization of devnet params

This commit is contained in:
Alexander Block 2019-06-22 14:34:58 +02:00 committed by Pasta
parent 50652674b5
commit e740604f60

View File

@ -871,12 +871,6 @@ std::unique_ptr<CChainParams> 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);
}