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

Add increment to skipped_items if we hit an Exception in mempool #19286

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

matt-o-how
Copy link
Contributor

Purpose:

If we hit an exception in the mempool items we skip that item, this change means that we track this correctly.

@matt-o-how matt-o-how added the Changed Required label for PR that categorizes merge commit message as "Changed" for changelog label Feb 18, 2025
@github-actions github-actions bot added the merge_conflict Branch has conflicts that prevent merge to main label Feb 18, 2025
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@matt-o-how matt-o-how force-pushed the add_skip_to_exception branch from 2f84a72 to 41620dd Compare February 18, 2025 15:08
@github-actions github-actions bot removed the merge_conflict Branch has conflicts that prevent merge to main label Feb 18, 2025
Copy link
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

Copy link

Pull Request Test Coverage Report for Build 13412912353

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 2 files are covered.
  • 26 unchanged lines in 10 files lost coverage.
  • Overall coverage decreased (-0.009%) to 91.517%

Files with Coverage Reduction New Missed Lines %
chia/daemon/keychain_proxy.py 1 73.24%
chia/farmer/farmer.py 1 73.37%
chia/full_node/full_node.py 1 86.17%
chia/server/node_discovery.py 1 79.85%
chia/daemon/client.py 2 74.16%
chia/farmer/farmer_api.py 2 94.38%
chia/_tests/core/test_farmer_harvester_rpc.py 2 97.95%
chia/timelord/timelord_launcher.py 2 90.71%
chia/wallet/util/wallet_sync_utils.py 2 85.64%
chia/wallet/wallet_node.py 12 87.53%
Totals Coverage Status
Change from base Build 13392975396: -0.009%
Covered Lines: 105341
Relevant Lines: 114929

💛 - Coveralls

@matt-o-how matt-o-how force-pushed the add_skip_to_exception branch from b458ce9 to 60dd958 Compare February 20, 2025 12:09
@matt-o-how matt-o-how marked this pull request as ready for review February 28, 2025 13:56
@matt-o-how matt-o-how requested a review from a team as a code owner February 28, 2025 13:56
@matt-o-how matt-o-how requested a review from arvidn February 28, 2025 14:12
@arvidn arvidn requested a review from AmineKhaldi February 28, 2025 15:04
@@ -3176,7 +3176,7 @@ def agg_and_add_sb_returning_cost_info(mempool: Mempool, spend_bundles: list[Spe
# The 3 items got skipped here
# We ran with solution A and missed bigger savings on solution B
assert mempool.size() == 5
assert [c.coin for c in agg.coin_spends] == [coins[0], coins[1], coins[2]]
assert [c.coin for c in agg.coin_spends] == [coins[0], coins[1]]
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we know exactly how the fix led to this test change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changed Required label for PR that categorizes merge commit message as "Changed" for changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants