assert(view.SetBestBlock(pindex->GetBlockHash()));
bool success = view.SetBestBlock(pindex->GetBlockHash());assert(success);