No need for zero initialization of devnet params
This commit is contained in:
parent
50652674b5
commit
e740604f60
@ -871,12 +871,6 @@ std::unique_ptr<CChainParams> CreateChainParams(const std::string& chain)
|
|||||||
|
|
||||||
void SelectParams(const std::string& network)
|
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);
|
SelectBaseParams(network);
|
||||||
globalChainParams = CreateChainParams(network);
|
globalChainParams = CreateChainParams(network);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user