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

Fix block_event_and_reorg_event_handling test. #3018

Closed
wants to merge 2 commits into from

Conversation

Cifko
Copy link
Contributor

@Cifko Cifko commented Jun 18, 2021

Description

This PR fix 3 issues that were failing:

  1. The coinbase_lock_height is 2, so we had to add one empty block to be able to process the UTXO.
  2. The TXs were discarded because their input was invalid. Solution was to move it after the processing of the block1.
  3. Removal of assert_eq, there is proper one async_assert_eventually.

@Cifko
Copy link
Contributor Author

Cifko commented Jun 18, 2021

Is there a better way to add empty block?

@@ -754,7 +754,7 @@ fn service_request_timeout() {
#[ignore = "Flaky test that needs to be fixed"]
Copy link
Contributor

Choose a reason for hiding this comment

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

If the test is passing reliably now then you can remove this #[ignore] attribute so it can run on CI 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done. thanks.

delta1
delta1 previously approved these changes Jun 18, 2021
Copy link
Contributor

@delta1 delta1 left a comment

Choose a reason for hiding this comment

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

Tested locally working, nice one.

#[allow(clippy::identity_op)]
fn block_event_and_reorg_event_handling() {
// #flaky, this test seems to fail after submiting block B2A to bob.
// #flaky, this test seems to fail after submitting block B2A to bob.
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry I forgot to ask to remove this comment as well!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My bad, my spellchecker just noticed that mistake, next time I will read the comments more carefully.

Copy link
Contributor

Choose a reason for hiding this comment

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

No worries 🙃

stringhandler added a commit that referenced this pull request Jun 24, 2021
This PR fix 3 issues that were failing:

The coinbase_lock_height is 2, so we had to add one empty block to be able to
process the UTXO.  The TXs were discarded because their input was invalid.
Solution was to move it after the processing of the block1.  Removal of
assert_eq, there is proper one async_assert_eventually.
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