Skip to content

Commit

Permalink
add logger error on deserialize blocks; #841
Browse files Browse the repository at this point in the history
  • Loading branch information
PropzSaladaz committed Feb 5, 2025
1 parent a45b7a2 commit d418021
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion catchup/client/CatchupClientAgent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,15 @@ ptr< CommittedBlockList > CatchupClientAgent::readMissingBlocks( ptr< ClientSock


if ( blockSizes->size() > 1 ) {
LOG( info, "CATCHUP_GOT_BLOCKS:COUNT:"
if ( blockList->getBlocks()->size() > 1) {
LOG( info, "CATCHUP_GOT_BLOCKS:COUNT:"
<< to_string( blockSizes->size() ) << ":STARTBLOCK:"
<< string( blockList->getBlocks()->at( 0 )->getBlockID() )
<< ":FROM_NODE:" << _socket->getIP() );
}
else {
LOG( err, "Could not deserialize blocks" );
}
}
} catch ( ExitRequestedException& ) {
throw;
Expand Down

0 comments on commit d418021

Please sign in to comment.