-
Notifications
You must be signed in to change notification settings - Fork 2k
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
run_block_generator2() #16241
run_block_generator2() #16241
Conversation
6dd1bd4
to
fd0051d
Compare
This comment was marked as outdated.
This comment was marked as outdated.
fd0051d
to
a61a154
Compare
This comment was marked as outdated.
This comment was marked as outdated.
a61a154
to
1a57c6a
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
1 similar comment
This comment was marked as outdated.
This comment was marked as outdated.
1a57c6a
to
75c8e9d
Compare
This comment was marked as outdated.
This comment was marked as outdated.
75c8e9d
to
f659828
Compare
This comment was marked as outdated.
This comment was marked as outdated.
f659828
to
1dd4187
Compare
This comment was marked as outdated.
This comment was marked as outdated.
1dd4187
to
432a434
Compare
…0 to activate at a different height
432a434
to
992ff5c
Compare
Pull Request Test Coverage Report for Build 6122871321
💛 - Coveralls |
I'm removing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't quite understand the intricacies of all the new test branches, although I do have the idea that they have to do with different costs for the new run_block_generator2
. I assume the new costs are always lower than the old costs, which will give us a slightly simpler hard fork discontinuity (non-smoothness) of expecting the committed costs to be below the actual block_generator2 costs (maybe even by a constant?).
…le the 10000 block tests with hard-fork activation
correct.
it won't be constant. the most expensive thing the generator ROM does is to compute the puzzle hashes of puzzles. This will be free after the hard-fork, so the "savings" depend on how expensive the tree-hashes are, essentially. |
992ff5c
to
34041d4
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aok thanks guys!
This PR is best reviewed one commit at a time.
This updates the hard-fork to use
run_block_generator2()
as intended. this alters the cost block generators as the cost of the ROM itself is not charged (once the hard fork activates)The new
run_block_generator2()
can be reviewed here: https://github.com/Chia-Network/chia_rs/blob/main/src/gen/run_block_generator.rs#L111-L191Since
testnet10
has already activated the hard-fork, this fix needs a separate activation height there. In mainnet, the activation stays the same as the original hard fork.There are new pre-generated test blockchains in the
test-cache
repository, with the_harfork
suffix.