upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/db.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.cpp')
-rw-r--r--src/db.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/db.cpp b/src/db.cpp
index 949865f..bf1958d 100644
--- a/src/db.cpp
+++ b/src/db.cpp
@@ -806,20 +806,12 @@ bool CTxDB::LoadBlockIndex()
806 806
807 807
808// 808//
809// CReviewDB 809// CReviewDB is gone with the "review" handler. Its write path was
810// read-whole-vector / append-one / write-whole-vector, driven straight from an
811// unauthenticated peer, which is quadratic disk on an unbounded record.
812// Existing reviews.dat files are simply left alone and never opened.
810// 813//
811 814
812bool CReviewDB::ReadReviews(uint256 hash, vector<CReview>& vReviews)
813{
814 vReviews.size(); // msvc workaround, just need to do anything with vReviews
815 return Read(make_pair(string("reviews"), hash), vReviews);
816}
817
818bool CReviewDB::WriteReviews(uint256 hash, const vector<CReview>& vReviews)
819{
820 return Write(make_pair(string("reviews"), hash), vReviews);
821}
822
823 815
824 816
825 817