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