mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 18:53:23 -03:00
Eliminate extra assignment
This commit is contained in:
parent
ec7eb0fa80
commit
f7e36370f3
1 changed files with 1 additions and 2 deletions
|
@ -2795,8 +2795,7 @@ FILE* OpenUndoFile(const CDiskBlockPos &pos, bool fReadOnly) {
|
||||||
|
|
||||||
boost::filesystem::path GetBlockPosFilename(const CDiskBlockPos &pos, const char *prefix)
|
boost::filesystem::path GetBlockPosFilename(const CDiskBlockPos &pos, const char *prefix)
|
||||||
{
|
{
|
||||||
boost::filesystem::path path = GetDataDir() / "blocks" / strprintf("%s%05u.dat", prefix, pos.nFile);
|
return GetDataDir() / "blocks" / strprintf("%s%05u.dat", prefix, pos.nFile);
|
||||||
return path;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CBlockIndex * InsertBlockIndex(uint256 hash)
|
CBlockIndex * InsertBlockIndex(uint256 hash)
|
||||||
|
|
Loading…
Add table
Reference in a new issue