message: add missing DB_LAST_BLOCK write in WriteBatchSync
diff: @@ -340,6 +340,10 @@ bool CBlockTreeDB::WriteBatchSync(const std::vector<std::pair<int, const CBlockF
  {
  batch.Write(make_pair(DB_BLOCK_FILES, it->first), *it->second);
  }
  + if (!pblockdb)
  + {
  + batch.Write(DB_LAST_BLOCK, nLastFile);
  + }
  for (std::vector<const CBlockIndex *>::const_iterator it = blockinfo.begin(); it != blockinfo.end(); it++)
  {
  batch.Write(make_pair(DB_BLOCK_INDEX, (*it)->GetBlockHash()), CDiskBlockIndex(*it));
  