diff options
author | Pieter Wuille <pieter@wuille.net> | 2023-01-30 13:13:20 -0500 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2023-01-30 13:13:20 -0500 |
commit | 98db35c2f81098b179136ed6c5f2a8570b3b5900 (patch) | |
tree | e73249f6df57662fdbdffcdc0b3d7e62eeeaae6a /src/coins.cpp | |
parent | bb00357add2c44d4b2cf4341be963f6bb9bee63f (diff) | |
download | bitcoin-98db35c2f81098b179136ed6c5f2a8570b3b5900.tar.xz |
Follow coding style for named arguments
Diffstat (limited to 'src/coins.cpp')
-rw-r--r-- | src/coins.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coins.cpp b/src/coins.cpp index ecbd625cd7..e240136576 100644 --- a/src/coins.cpp +++ b/src/coins.cpp @@ -249,7 +249,7 @@ bool CCoinsViewCache::BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlockIn } bool CCoinsViewCache::Flush() { - bool fOk = base->BatchWrite(cacheCoins, hashBlock, /*erase=*/ true); + bool fOk = base->BatchWrite(cacheCoins, hashBlock, /*erase=*/true); cacheCoins.clear(); cachedCoinsUsage = 0; return fOk; @@ -257,7 +257,7 @@ bool CCoinsViewCache::Flush() { 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 // FRESH/DIRTY flags of any coin that isn't spent. for (auto it = cacheCoins.begin(); it != cacheCoins.end(); ) { |