Skip to content

test, assumeutxo: Add test to ensure failure when mempool not empty #29394

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

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

hernanmarino
Copy link
Contributor

@hernanmarino hernanmarino commented Feb 7, 2024

Add a test to ensure that loadtxoutset fails when the node's mempool is not empty, as suggested by maflcko here: #27596 (comment)

@DrahtBot
Copy link
Contributor

DrahtBot commented Feb 7, 2024

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

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK maflcko, BrandonOdiwuor
Stale ACK fjahr

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

This was referenced Feb 7, 2024
@hernanmarino hernanmarino force-pushed the assumeutxo-test-mempool branch 2 times, most recently from 9d17e19 to 8021940 Compare February 8, 2024 14:32
Copy link
Member

@maflcko maflcko left a comment

Choose a reason for hiding this comment

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

lgtm

@hernanmarino hernanmarino force-pushed the assumeutxo-test-mempool branch from 8021940 to da13cc2 Compare February 8, 2024 20:09
@maflcko
Copy link
Member

maflcko commented Feb 9, 2024

lgtm ACK da13cc2

Thanks

@maflcko maflcko requested a review from fjahr February 12, 2024 10:13
@fjahr
Copy link
Contributor

fjahr commented Feb 12, 2024

utACK da13cc2

I still think my suggestions here would be an improvement but are not strictly needed.

@DrahtBot DrahtBot removed the request for review from fjahr February 12, 2024 12:31
@maflcko maflcko added this to the 27.0 milestone Feb 12, 2024
@hernanmarino
Copy link
Contributor Author

utACK da13cc2

I still think my suggestions here would be an improvement but are not strictly needed.

Thanks for mentioning that, I think that leaving node 2 was a better alternative becuase it makes this a cleaner and more test , and avoids the errors that might arise in future code changes (mentioned by @maflcko and others that might arise) but i was struggling to find a solution and / or follow your suggestion somehow. It's nice that we can all agree in this way, thanks.

@hernanmarino hernanmarino force-pushed the assumeutxo-test-mempool branch from da13cc2 to 8d20602 Compare February 12, 2024 18:25
@hernanmarino
Copy link
Contributor Author

Copy link
Contributor

@BrandonOdiwuor BrandonOdiwuor left a comment

Choose a reason for hiding this comment

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

Concept ACK

@maflcko
Copy link
Member

maflcko commented Feb 13, 2024

Please don't invalidate two ACKs for a single space style issue. If you care about the style, it is your responsibility to take care of before opening the pull request, or before pushing the code. You can use any auto-formatter of your choice.

re-ACK 8d20602

Copy link
Contributor

@BrandonOdiwuor BrandonOdiwuor left a comment

Choose a reason for hiding this comment

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

ACK 8d20602

@fanquake fanquake merged commit f83565d into bitcoin:master Feb 13, 2024
achow101 added a commit that referenced this pull request Jun 4, 2024
…e loaded

df6dc2a test: Assumeutxo: snapshots with less work should not be loaded (Hernan Marino)

Pull request description:

  This PR adds a test which checks that snapshots with less accumulated work than the node's active chain, should not be loaded and return with an error. Although in a different context of discussion the missing test was detect in a thread in #29394 (see #29394 (comment))

ACKs for top commit:
  maflcko:
    utACK df6dc2a
  kevkevinpal:
    utACK [df6dc2a](df6dc2a)
  achow101:
    ACK df6dc2a
  alfonsoromanz:
    Re ACK df6dc2a. Make is successful and the test passes.

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

Successfully merging this pull request may close these issues.

6 participants