-
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
move get_name_puzzle_conditions()
into test utils
#18839
Conversation
ee33718
to
cbdd10c
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.
I would move it to chia/_tests/util/run_block.py
.
why? |
It just seemed unnecessary to give it its own module while we have a test utils one about functions related to running blocks. Up to you. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
cbdd10c
to
471bbfa
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
|
@AmineKhaldi I don't think there's a cost of having one more file, but separating them may avoid module cycles |
It's only used by tests now.
Purpose:
reduce the amount of production code.
Current Behavior:
get_name_puzzle_conditions()
is only used by tests but live inchia.full_node.mempool_check_conditions
New Behavior:
get_name_puzzle_conditions()
is only used by tests and live inchia._tests.util.get_name_puzzle_conditions
Testing Notes: