-
Notifications
You must be signed in to change notification settings - Fork 27
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
Only pass coin spends to get_conditions_from_spendbundle #643
Conversation
…Conditions (to enable reusing existing test facilities). Extend the tests to cover the block-generator test cases
…om_spendbundle Extend the tests to cover the block-generator test cases
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.
The only reason I can think of to not do this is if we're planning to make get_conditions_from_spendbundle()
validate the signature in the future
Personally it's preferable to keep them separate since you often want to validate transactions, compute the cost, or unit test them without actually having valid signatures Maybe it could be a flag though |
Yeah, there are quite a lot of places where we trust the block to be valid (e.g. if we find it in our DB) but we just want to run it to get at the conditions. Then we don't want to also validate the signatures. (this needs a rebase now btw) |
Closing for now |
No description provided.