https://github.com/bitcoin/bitcoin/pull/28996

Motivation

The PR improves the maxuploadtarget functional tests by checking the reported flags (getnettotals RPC target_reached and serve_historical_blocks ), checking the proper log messages are present when disconnection happens (in order to make it easier to check whether or not there’s test coverage for those disconnection reasons), plus adds an additional disconnection check by issuing MEMPOOL messages once the upload limit has been reached, but the peer has been whitelisted for block download only.

Thoughts/Questions

The change is pretty straightforward and an easy improvement of the test. I just left a couple of partially unrelated comments that could be squashed into the PR given we are improving the test anyway.

Review

test: maxuploadtarget: check for mempool msg disconnect if limit is reached, improve existing test coverage by theStack · Pull Request #28996 · bitcoin/bitcoin