Skip to content

test: Fix intermittent sync issue in wallet_pruning - #27066

Merged
maflcko merged 1 commit into
bitcoin:masterfrom
maflcko:2302-test-fix-🍾
Feb 10, 2023

Hidden character warning

The head ref may contain hidden characters: "2302-test-fix-\ud83c\udf7e"
Merged

test: Fix intermittent sync issue in wallet_pruning#27066
maflcko merged 1 commit into
bitcoin:masterfrom
maflcko:2302-test-fix-🍾

Conversation

@maflcko

@maflcko maflcko commented Feb 9, 2023

Copy link
Copy Markdown
Member

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

DrahtBot commented Feb 9, 2023

Copy link
Copy Markdown
Contributor

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

@brunoerg brunoerg left a comment

Copy link
Copy Markdown
Contributor

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
@mzumsande

Copy link
Copy Markdown
Contributor

@maflcko

maflcko commented Feb 13, 2023

Copy link
Copy Markdown
Member Author

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

maflcko commented Feb 13, 2023

Copy link
Copy Markdown
Member Author

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