mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
remove redundant call to c_str (#4659)
CreateDevNetGenesisBlock takes a std::string, not a const char* Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
parent
aaad47a874
commit
0d4ae0ad91
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user