mirror of https://github.com/bitcoin/bitcoin
Merge bitcoin/bitcoin#28227: test: check for specific bip157 disconnect reasons, add test coverage
pull/28556/head2ab7952bda
test: add bip157 coverage for (start height > stop height) disconnect (Sebastian Falbesoner)63e90e1d3f
test: check for specific disconnect reasons in p2p_blockfilters.py (Sebastian Falbesoner) Pull request description: This PR checks for specific disconnect reasons using `assert_debug_log` in the functional test `p2p_blockfilters.py`. With that we ensure that the disconnect happens for the expected reason and also makes it easier to navigate between implementation and test code, i.e. both the questions "do we have test coverage for this disconnect cause?" (from an implementation reader's perspective) and "where is the code handling this disconnect cause?" (from a test reader's perspective) can be answered simply by grep-ping the corresponding debug message. Also, based on that, missing coverage for the (start height > stop height) disconnect case is added:b7138252ac/src/net_processing.cpp (L3050-L3056)
ACKs for top commit: MarcoFalke: lgtm ACK2ab7952bda
furszy: Looks good, code ACK2ab7952b
Tree-SHA512: 0581cb569d5935aaa004a95a6f16eeafe628b9d816ebb89232f2832e377049df878a1e74c369fb46931b94e1a3a5e3f4aaa21a007c0a488f4ad2cda0919c605d
commit
e3b052800f
Loading…
Reference in new issue