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
use rust types for VDFInfo, VDFProof and ClassgroupElement #17102
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arvidn
added
the
Changed
Required label for PR that categorizes merge commit message as "Changed" for changelog
label
Dec 20, 2023
Pull Request Test Coverage Report for Build 7386784801
💛 - Coveralls |
arvidn
force-pushed
the
rust-vdf-types
branch
from
December 21, 2023 21:22
bd5170e
to
e8d2253
Compare
arvidn
force-pushed
the
rust-vdf-types
branch
from
December 22, 2023 01:41
e8d2253
to
294ad22
Compare
arvidn
force-pushed
the
rust-vdf-types
branch
from
December 22, 2023 12:20
294ad22
to
86382ce
Compare
altendky
requested changes
Dec 22, 2023
arvidn
force-pushed
the
rust-vdf-types
branch
from
December 22, 2023 16:56
86382ce
to
52ce339
Compare
arvidn
force-pushed
the
rust-vdf-types
branch
from
December 22, 2023 21:56
52ce339
to
e7aecf1
Compare
arvidn
force-pushed
the
rust-vdf-types
branch
from
December 28, 2023 14:02
e7aecf1
to
e6cf58e
Compare
…se types aren't dataclasses, the dataclass.replace() is changed to method replace()
arvidn
force-pushed
the
rust-vdf-types
branch
from
December 31, 2023 09:49
e6cf58e
to
ef6a3e3
Compare
altendky
approved these changes
Jan 3, 2024
|
wjblanke
approved these changes
Jan 4, 2024
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! exciting
mikehw
pushed a commit
to mikehw/chia-blockchain
that referenced
this pull request
Jan 11, 2024
…ork#17102) * use rust types for VDFInfo, VDFProof and ClassgroupElement. Since these types aren't dataclasses, the dataclass.replace() is changed to method replace() * add test for recursive_replace() * add comment in recursive_replace() hack
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose:
This is a step towards making
FullBlock
a rust type, to move enough of the block validation into rust to be able to use threads instead of processes.The rust counterparts are defined here:
https://github.com/Chia-Network/chia_rs/blob/main/chia-protocol/src/vdf.rs
https://github.com/Chia-Network/chia_rs/blob/main/chia-protocol/src/classgroup.rs
Since these types aren't dataclasses, the
dataclass.replace()
is changed to methodreplace()
.Current Behavior:
VDFInfo
,VDFProof
andClasgroupElement
are python types.New Behavior:
VDFInfo
,VDFProof
andClasgroupElement
are native (rust) types.