Performance issue reported in #31437 (comment)
It seems that code as-is waits for wall-clock time to pass to synchronize mempools. Locally, sometimes the subtest takes a couple seconds, sometimes it takes an additional minute.
Just use mocktime?
Performance issue reported in #31437 (comment)
It seems that code as-is waits for wall-clock time to pass to synchronize mempools. Locally, sometimes the subtest takes a couple seconds, sometimes it takes an additional minute.
Just use mocktime?
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/31811.
See the guideline for information on the review process.
Type | Reviewers |
---|---|
ACK | sr-gi, Prabhat1308, rishkwal |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
tACK 2706c5b
Speedup is observed when running the test with the diffs.
ACK with the use of Mocktime as the test is independent from the use of wall-clock time. This can be seen by the use of setmocktime()
in other functions in the same file as well .
tACK 2706c5b
Tested multiple times. Previously took anywhere between 36 to 96 seconds. Now consistently taking around 35 to 37 seconds. Agree that test_inv_block
does not need real-time delay.
instagibbs
DrahtBot
sr-gi
Prabhat1308
rishkwal
Labels
Tests