diff options
| author | Julian Fleischer <[email protected]> | 2019-02-12 18:13:29 +0100 |
|---|---|---|
| committer | Julian Fleischer <[email protected]> | 2019-02-12 22:25:47 +0100 |
| commit | 5039e4b61beb937bad33ac4300cc784642782589 (patch) | |
| tree | f7595571a62a31ed0dbe60cb8868b15329feb967 /src | |
| parent | Merge #15378: tests: Added missing tests for RPC wallet errors (diff) | |
| download | discoin-5039e4b61beb937bad33ac4300cc784642782589.tar.xz discoin-5039e4b61beb937bad33ac4300cc784642782589.zip | |
Remove unnecessary const_cast
Signed-off-by: Julian Fleischer <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index dbdc1afb3..1806bc126 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4347,7 +4347,7 @@ bool CChainState::LoadGenesisBlock(const CChainParams& chainparams) return true; try { - CBlock &block = const_cast<CBlock&>(chainparams.GenesisBlock()); + const CBlock& block = chainparams.GenesisBlock(); CDiskBlockPos blockPos = SaveBlockToDisk(block, 0, chainparams, nullptr); if (blockPos.IsNull()) return error("%s: writing genesis block to disk failed", __func__); |