See title.
Co-authored-by: Jason B. Cox <contact@jasonbcox.com>
Co-authored-by: Nico Guiton <nico@bitframe.org>
Differential D2777
Add functional tests for rejecting headers that build on invalid chains jasonbcox on Apr 5 2019, 16:57. Authored by
Details
See title. Co-authored-by: Jason B. Cox <contact@jasonbcox.com> make check test_runner.py abc-invalid-chains
Diff Detail
Event TimelineComment Actions To double-check my work, I tested the test by itself on master and realized it passes. Digging around, I found this: https://github.com/bitcoin/bitcoin/pull/13930 which made it more clear which case I was missing. Comment Actions Added missing test case Also, tested this on master and all test cases pass (expectation was that it would fail without D2645 applied). I suspect this is because our block Comment Actions The test case do not seem to be corresponding to the modified code (which is an assertion failing). In D2645 , you state that there is a bug fix related to that test case, and that this is why the code isn't like in the backport but it is still unclear what the bug is, what fixes it and if the test is actually testing anything. It shouldn't be difficult to have the bug fix coming with the test as one diff, or have an explanation as to why this isn't possible in the diff. In the current form, there are no way to review this reliably. Comment Actions I've revisited this diff so that it's not intended to be test coverage for D2645, but rather a precursor to writing tests for it. Please review it as such. Comment Actions Is that possible to remove the dependency from that test so that it test current behavior, then add the change required to the test to test the new behavior in D2645 ? This way it is very apparent what behavior is changed. |