Skip to content

test: Assert that when we add the max orphan amount that we cannot add anymore and that a random orphan gets dropped

After joining the bitcoin pr review club about https://github.com/bitcoin/bitcoin/pull/30793

I learned about CVE-2012-3789

So I was motivated to write a functional test that covers this part of the code,

This test should add the max number of orphans to a nodes orphanage and then attempt to add another, then asserts that the number of orphans is still at the max amount

Merge request reports

Loading