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