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

remove the block fill rate limit of 70% when farming a block #19005

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

Conversation

arvidn
Copy link
Contributor

@arvidn arvidn commented Dec 9, 2024

Purpose:

to increase transaction rate

Current Behavior:

Farmers only fill blocks to 70% full

New Behavior:

Farmers fill blocks all the way. But blocks are compressed and have potential to fit more transactions.

Testing Notes:

@arvidn arvidn requested a review from AmineKhaldi December 9, 2024 15:51
@arvidn arvidn added the Changed Required label for PR that categorizes merge commit message as "Changed" for changelog label Dec 9, 2024
@arvidn arvidn marked this pull request as ready for review December 9, 2024 16:45
@arvidn arvidn requested a review from a team as a code owner December 9, 2024 16:45
Copy link

coveralls-official bot commented Dec 9, 2024

Pull Request Test Coverage Report for Build 12254251236

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 7 of 7 (100.0%) changed or added relevant lines in 2 files are covered.
  • 21 unchanged lines in 7 files lost coverage.
  • Overall coverage increased (+0.02%) to 91.485%

Files with Coverage Reduction New Missed Lines %
chia/full_node/pending_tx_cache.py 1 96.55%
chia/wallet/util/wallet_sync_utils.py 1 86.07%
chia/plotters/plotters.py 1 90.94%
chia/full_node/full_node_api.py 1 82.34%
chia/wallet/wallet_node.py 3 88.1%
chia/plotters/madmax.py 6 44.58%
chia/server/node_discovery.py 8 79.82%
Totals Coverage Status
Change from base Build 12209661102: 0.02%
Covered Lines: 104589
Relevant Lines: 114135

💛 - Coveralls

AmineKhaldi
AmineKhaldi previously approved these changes Dec 9, 2024
@@ -1081,7 +1081,7 @@ async def make_and_send_big_cost_sb(coin: Coin) -> None:
g1 = sk.get_g1()
sig = AugSchemeMPL.sign(sk, IDENTITY_PUZZLE_HASH, g1)
aggsig = G2Element()
for _ in range(169):
for _ in range(242):
Copy link
Contributor

Choose a reason for hiding this comment

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

do you want to comment what this magic number is

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, it's not great. it's the number of transactions we need to fill the mempool sufficiently to trigger the expected number of rejections. going from fill rate 70% -> 100%, I simply took 169 / 0.7 to increase this number proportionally. I'll try to improve this a bit.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sent #19026 as an attempt to clarify this.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think I might prefer the simpler construct with a comment like Amine has above. The latest version here Arvid has more magic numbers :-)

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.

3 participants