From 0d4ae0ad91ae0e1086943a911c6a73adcb6e3cbe Mon Sep 17 00:00:00 2001 From: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com> Date: Mon, 10 Jan 2022 13:36:55 -0500 Subject: [PATCH] remove redundant call to c_str (#4659) CreateDevNetGenesisBlock takes a std::string, not a const char* Signed-off-by: Pasta --- src/chainparams.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 48e92633f6..f8f16c907b 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -90,7 +90,7 @@ static CBlock FindDevNetGenesisBlock(const CBlock &prevBlock, const CAmount& rew std::string devNetName = gArgs.GetDevNetName(); assert(!devNetName.empty()); - CBlock block = CreateDevNetGenesisBlock(prevBlock.GetHash(), devNetName.c_str(), prevBlock.nTime + 1, 0, prevBlock.nBits, reward); + CBlock block = CreateDevNetGenesisBlock(prevBlock.GetHash(), devNetName, prevBlock.nTime + 1, 0, prevBlock.nBits, reward); arith_uint256 bnTarget; bnTarget.SetCompact(block.nBits);