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);