Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple fixes for ChainLock tests #3129

Merged
merged 5 commits into from
Oct 2, 2019

Conversation

codablock
Copy link

@codablock codablock commented Oct 1, 2019

Need to increase the timeout when waiting for a chainlock after generating 20 blocks. Test failures seen on Travis were very close to getting the chainlock but then failed due to timeouts. This PR also adds some logging to the tests so that it's easier to debug this in the future.

Also get rid of wait_for_chainlocked_tip and wait_for_chainlocked_tip_all_nodes as of the discussion in #3122 (comment)

This builds on #3122 and needs a rebase after that is merged.

@codablock codablock added this to the 14.1 milestone Oct 1, 2019
@codablock codablock force-pushed the pr_fix_chainlock_tests branch from 81f7123 to c6fafcd Compare October 1, 2019 08:29
@codablock codablock changed the title Increase timeout for llmq-chainlocks.py Multiple fixes for ChainLock tests Oct 1, 2019
@UdjinM6
Copy link

UdjinM6 commented Oct 2, 2019

Needs rebase

…block_all_nodes

wait_for_chainlocked_tip_all_nodes did wait for the tip of each individual
node, which would not necessarily be the same. We should only allow to
explicitly specify which block to wait for.
Same as with wait_for_chainlocked_tip_all_nodes
@codablock codablock force-pushed the pr_fix_chainlock_tests branch from c8d0a66 to 28997d4 Compare October 2, 2019 09:22
@codablock
Copy link
Author

Rebased on develop

Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

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

utACK

Copy link

@nmarley nmarley left a comment

Choose a reason for hiding this comment

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

utACK

@codablock codablock merged commit cd6c5b4 into dashpay:develop Oct 2, 2019
@codablock codablock deleted the pr_fix_chainlock_tests branch October 2, 2019 13:25
barrystyle pushed a commit to PACGlobalOfficial/PAC that referenced this pull request Jan 22, 2020
* Add timeout params to wait_for*_chainlock methods

* Give chainlocks more time in specific case

* Add logs to llmq-chainlock.py

* Replace wait_for_chainlocked_tip_all_nodes with wait_for_chainlocked_block_all_nodes

wait_for_chainlocked_tip_all_nodes did wait for the tip of each individual
node, which would not necessarily be the same. We should only allow to
explicitly specify which block to wait for.

* Get rid of wait_for_chainlocked_tip

Same as with wait_for_chainlocked_tip_all_nodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants