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 c8642e9..6f9461b 100644
--- a/src/db.cpp
+++ b/src/db.cpp
@@ -598,20 +598,12 @@ bool CTxDB::LoadBlockIndex()
598 598
599 599
600// 600//
601// CReviewDB 601// CReviewDB is gone with the "review" handler. Its write path was
602// read-whole-vector / append-one / write-whole-vector, driven straight from an
603// unauthenticated peer, which is quadratic disk on an unbounded record.
604// Existing reviews.dat files are simply left alone and never opened.
602// 605//
603 606
604bool CReviewDB::ReadReviews(uint256 hash, vector<CReview>& vReviews)
605{
606 vReviews.size(); // msvc workaround, just need to do anything with vReviews
607 return Read(make_pair(string("reviews"), hash), vReviews);
608}
609
610bool CReviewDB::WriteReviews(uint256 hash, const vector<CReview>& vReviews)
611{
612 return Write(make_pair(string("reviews"), hash), vReviews);
613}
614
615 607
616 608
617 609