| 33 | {} |
| 34 | |
| 35 | bool BaseIndex::DB::ReadBestBlock(CBlockLocator& locator) const |
| 36 | { |
| 37 | bool success = Read(DB_BEST_BLOCK, locator); |
| 38 | if (!success) { |
| 39 | locator.SetNull(); |
| 40 | } |
| 41 | return success; |
| 42 | } |
| 43 | |
| 44 | bool BaseIndex::DB::WriteBestBlock(const CBlockLocator& locator) |
| 45 | { |