Skip to content

Commit e740604

Browse files
codablockPastaPastaPasta
authored andcommitted
No need for zero initialization of devnet params
1 parent 5065267 commit e740604

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/chainparams.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -871,12 +871,6 @@ std::unique_ptr<CChainParams> CreateChainParams(const std::string& chain)
871871

872872
void SelectParams(const std::string& network)
873873
{
874-
if (network == CBaseChainParams::DEVNET) {
875-
devNetParams = (CDevNetParams*)new uint8_t[sizeof(CDevNetParams)];
876-
memset(devNetParams, 0, sizeof(CDevNetParams));
877-
new (devNetParams) CDevNetParams();
878-
}
879-
880874
SelectBaseParams(network);
881875
globalChainParams = CreateChainParams(network);
882876
}

0 commit comments

Comments
 (0)