diff options
Diffstat (limited to 'src/db.cpp')
| -rw-r--r-- | src/db.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
| @@ -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 | ||
| 812 | bool 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 | |||
| 818 | bool 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 | ||