File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -225,7 +225,6 @@ static bool rest_headers(const std::any& context,
225
225
CBlockHeader tmp;
226
226
ReadBlockHeaderFromDisk (tmp, pindex, Params ().GetConsensus ());
227
227
ssHeader << tmp;
228
-
229
228
} else {
230
229
ssHeader << pindex->GetBlockHeader ();
231
230
}
@@ -247,7 +246,8 @@ static bool rest_headers(const std::any& context,
247
246
248
247
} else {
249
248
ssHeader << pindex->GetBlockHeader ();
250
- } }
249
+ }
250
+ }
251
251
252
252
std::string strHex = HexStr (ssHeader) + " \n " ;
253
253
req->WriteHeader (" Content-Type" , " text/plain" );
Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ bool CBlockTreeDB::WalkBlockIndexGutsForMaxHeight(int* nHeight) {
318
318
if (pcursor->GetKey (key) && key.first == DB_BLOCK_INDEX) {
319
319
i++;
320
320
if (i > 10'000 ) {
321
- // Under the (accurate) assumption hat the headers on disk are effectively in random height order,
321
+ // Under the (accurate) assumption that the headers on disk are effectively in random height order,
322
322
// we have a good-enough (conservative) estimate of the max height very quickly, and don't need to
323
323
// waste more time. Shortcutting like this will cause us to keep a few extra headers, which is fine.
324
324
break ;
Original file line number Diff line number Diff line change @@ -4141,7 +4141,7 @@ bool BlockManager::LoadBlockIndex(
4141
4141
if (fTrimHeaders ) {
4142
4142
int max_height = 0 ;
4143
4143
if (!blocktree.WalkBlockIndexGutsForMaxHeight (&max_height)) {
4144
- LogPrintf (" LoadBlockIndex: Somehow failed to WalkBlockIndexGutsForMaxHeight.\n " );
4144
+ LogPrintf (" LoadBlockIndex: Failed to WalkBlockIndexGutsForMaxHeight.\n " );
4145
4145
return false ;
4146
4146
}
4147
4147
You can’t perform that action at this time.
0 commit comments