Skip to content

Conversation

henmeh
Copy link

@henmeh henmeh commented Oct 10, 2023

No description provided.

@Sjors
Copy link
Owner

Sjors commented Oct 10, 2023

Concept ACK

Approach NACK. This open a DoS vector where an attacker can flood your logs by sending the same header over and over again.

@@ -3828,6 +3829,7 @@ bool ChainstateManager::AcceptBlockHeader(const CBlockHeader& block, BlockValida
return state.Invalid(BlockValidationResult::BLOCK_HEADER_LOW_WORK, "too-little-chainwork");
}
CBlockIndex* pindex{m_blockman.AddToBlockIndex(block, m_best_header)};
LogPrintf("Saw new header hash=%s\n", hash.ToString());
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Silent (?) merge conflict?

@henmeh henmeh closed this by deleting the head repository Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants