Follow coding style for named arguments
This commit is contained in:
1 parent
bb00357add
commit
98db35c2f8
1 file changed
+2
-2
+2
-2
@@ -249,7 +249,7 @@ bool CCoinsViewCache::BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlockIn
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool CCoinsViewCache::Flush() {
|
bool CCoinsViewCache::Flush() {
|
||||||
bool fOk = base->BatchWrite(cacheCoins, hashBlock, /*erase=*/ true);
|
bool fOk = base->BatchWrite(cacheCoins, hashBlock, /*erase=*/true);
|
||||||
cacheCoins.clear();
|
cacheCoins.clear();
|
||||||
cachedCoinsUsage = 0;
|
cachedCoinsUsage = 0;
|
||||||
return fOk;
|
return fOk;
|
||||||
@@ -257,7 +257,7 @@ bool CCoinsViewCache::Flush() {
|
|||||||
|
|
||||||
bool CCoinsViewCache::Sync()
|
bool CCoinsViewCache::Sync()
|
||||||
{
|
{
|
||||||
bool fOk = base->BatchWrite(cacheCoins, hashBlock, /*erase=*/ false);
|
bool fOk = base->BatchWrite(cacheCoins, hashBlock, /*erase=*/false);
|
||||||
// Instead of clearing `cacheCoins` as we would in Flush(), just clear the
|
// Instead of clearing `cacheCoins` as we would in Flush(), just clear the
|
||||||
// FRESH/DIRTY flags of any coin that isn't spent.
|
// FRESH/DIRTY flags of any coin that isn't spent.
|
||||||
for (auto it = cacheCoins.begin(); it != cacheCoins.end(); ) {
|
for (auto it = cacheCoins.begin(); it != cacheCoins.end(); ) {
|
||||||
|
|||||||
Reference in new issue
Block a user