diff options
author | Andrew Toth <andrewstoth@gmail.com> | 2024-07-17 23:11:48 -0400 |
---|---|---|
committer | Andrew Toth <andrewstoth@gmail.com> | 2024-08-05 19:43:56 -0400 |
commit | 7825b8b9aeceb4ff607650cdc9c49e5de9c7719f (patch) | |
tree | e646f309fa2669b865f0e4cbb964a531a097c3d3 /src/txdb.h | |
parent | a14edada8a051e280af6fedd5130be40247e2d7a (diff) |
coins: pass linked list of flagged entries to BatchWrite
BatchWrite now iterates through the linked
list of flagged entries instead of the entire
coinsCache map.
Co-Authored-By: l0rinc <pap.lorinc@gmail.com>
Diffstat (limited to 'src/txdb.h')
-rw-r--r-- | src/txdb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txdb.h b/src/txdb.h index c9af0a091e..e0acb09e98 100644 --- a/src/txdb.h +++ b/src/txdb.h @@ -63,7 +63,7 @@ public: bool HaveCoin(const COutPoint &outpoint) const override; uint256 GetBestBlock() const override; std::vector<uint256> GetHeadBlocks() const override; - bool BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock, bool erase = true) override; + bool BatchWrite(CoinsViewCacheCursor& cursor, const uint256 &hashBlock) override; std::unique_ptr<CCoinsViewCursor> Cursor() const override; //! Whether an unsupported database format is used. |