From 12c3cfd339159b3ab66d7b3cee027451a6eb22b8 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Mon, 11 Jul 2022 17:47:45 +0000 Subject: [PATCH] wallet: Make `{Increment, Decrement}NoteWitnesses`-internal helpers static --- src/wallet/wallet.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 24128cf0b..01f54bd7b 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2534,7 +2534,7 @@ void CWallet::ClearNoteWitnessCache() } template -void UpdateSpentHeightAndMaybePruneWitnesses(NoteDataMap& noteDataMap, int indexHeight, const uint256& nullifier) +static void UpdateSpentHeightAndMaybePruneWitnesses(NoteDataMap& noteDataMap, int indexHeight, const uint256& nullifier) { for (auto& item : noteDataMap) { auto* nd = &(item.second); @@ -2565,7 +2565,7 @@ void UpdateSpentHeightAndMaybePruneWitnesses(NoteDataMap& noteDataMap, int index } template -void CopyPreviousWitnesses(NoteDataMap& noteDataMap, int indexHeight, int64_t nWitnessCacheSize) +static void CopyPreviousWitnesses(NoteDataMap& noteDataMap, int indexHeight, int64_t nWitnessCacheSize) { for (auto& item : noteDataMap) { auto* nd = &(item.second); @@ -2596,7 +2596,7 @@ void CopyPreviousWitnesses(NoteDataMap& noteDataMap, int indexHeight, int64_t nW } template -void AppendNoteCommitment(NoteDataMap& noteDataMap, int indexHeight, int64_t nWitnessCacheSize, const uint256& note_commitment) +static void AppendNoteCommitment(NoteDataMap& noteDataMap, int indexHeight, int64_t nWitnessCacheSize, const uint256& note_commitment) { for (auto& item : noteDataMap) { auto* nd = &(item.second); @@ -2610,7 +2610,7 @@ void AppendNoteCommitment(NoteDataMap& noteDataMap, int indexHeight, int64_t nWi } template -void WitnessNoteIfMine(std::map& noteDataMap, int indexHeight, int64_t nWitnessCacheSize, const OutPoint& key, const Witness& witness) +static void WitnessNoteIfMine(std::map& noteDataMap, int indexHeight, int64_t nWitnessCacheSize, const OutPoint& key, const Witness& witness) { if (noteDataMap.count(key) && noteDataMap[key].witnessHeight < indexHeight) { auto* nd = &(noteDataMap[key]); @@ -2641,7 +2641,7 @@ void WitnessNoteIfMine(std::map& noteDataMap, int indexHeigh template -void UpdateWitnessHeights(NoteDataMap& noteDataMap, int indexHeight, int64_t nWitnessCacheSize) +static void UpdateWitnessHeights(NoteDataMap& noteDataMap, int indexHeight, int64_t nWitnessCacheSize) { for (auto& item : noteDataMap) { auto* nd = &(item.second); @@ -2786,7 +2786,7 @@ void CWallet::IncrementNoteWitnesses( } template -void DecrementNoteWitnesses(NoteDataMap& noteDataMap, int indexHeight, int64_t nWitnessCacheSize) +static void DecrementNoteWitnesses(NoteDataMap& noteDataMap, int indexHeight, int64_t nWitnessCacheSize) { for (auto& item : noteDataMap) { auto* nd = &(item.second);