Fixed implicit widening multiplication error, Removed unused "this", Fixed narrowing conversion, Made m_verified and m_invalid mutable, Removed else-after-return, Removed unused num_full_blocks and last_block_size var all to make clang-tidy happy
This commit is contained in:
+1
-1
@@ -3158,7 +3158,7 @@ bool P2PServer::P2PClient::on_genesis_info(const uint8_t* buf)
|
||||
if (!server->find_block(peer_genesis_id)) {
|
||||
LOGINFO(5, "Requesting genesis block " << peer_genesis_id << " from peer");
|
||||
const bool result = server->send(this,
|
||||
[&peer_genesis_id, this](uint8_t* buf, size_t buf_size) -> size_t
|
||||
[&peer_genesis_id](uint8_t* buf, size_t buf_size) -> size_t
|
||||
{
|
||||
if (buf_size < 1 + HASH_SIZE) {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user