Skip to content

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Feb 9, 2023

Setting the mocktime on each loop iteration will make net processing racy and cause a disconnect due to timeout.

Fix that by setting the mocktime only once.

Fixes #27065

@DrahtBot
Copy link
Contributor

DrahtBot commented Feb 9, 2023

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK brunoerg

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@DrahtBot DrahtBot added the Tests label Feb 9, 2023
Copy link
Contributor

@brunoerg brunoerg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

crACK fa6f678

@maflcko maflcko merged commit ffdf630 into bitcoin:master Feb 10, 2023
@maflcko maflcko deleted the 2302-test-fix-🍾 branch February 10, 2023 08:39
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Feb 10, 2023
@mzumsande
Copy link
Contributor

@maflcko
Copy link
Member Author

maflcko commented Feb 13, 2023

https://cirrus-ci.com/task/5441089956478976 cry

Ah, good catch. This is the still exactly the same error as in #27065. While the fix here is unrelated to fixing that bug, I think it is still needed to fix the same bug happening in a different line.

@maflcko
Copy link
Member Author

maflcko commented Feb 13, 2023

See #27093

fanquake added a commit to bitcoin-core/gui that referenced this pull request Feb 14, 2023
…let_pruning

fa9ec7b test: Fix intermittent sync issue in wallet_pruning (MarcoFalke)

Pull request description:

  The `sync_fun=self.no_op` has no motivation or rationale, and seems to be causing issues.

  Fix that by removing it.

  Actually fixes bitcoin/bitcoin#27065, see bitcoin/bitcoin#27066 (comment)

ACKs for top commit:
  fanquake:
    ACK fa9ec7b

Tree-SHA512: 3c67da6705d6698fcabb29de169a2b4723f74705c979380d1fddce5fe9595b4595445fd7d9790a6b2a89f10ce8ec3c64ce45248f58fd920b72b7b6fba8afb09f
@bitcoin bitcoin locked and limited conversation to collaborators Feb 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Intermittent issue in wallet_pruning.py
4 participants