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

Only pass coin spends to get_conditions_from_spendbundle #643

Closed
wants to merge 16 commits into from

Conversation

Rigidity
Copy link
Contributor

@Rigidity Rigidity commented Aug 5, 2024

No description provided.

@Rigidity Rigidity requested review from arvidn and matt-o-how August 5, 2024 17:42
arvidn
arvidn previously approved these changes Aug 6, 2024
Copy link
Contributor

@arvidn arvidn left a 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

@Rigidity
Copy link
Contributor Author

Rigidity commented Aug 6, 2024

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

Base automatically changed from get_flags_and_get_conditions to main August 6, 2024 11:11
@arvidn arvidn dismissed their stale review August 6, 2024 11:11

The base branch was changed.

@arvidn
Copy link
Contributor

arvidn commented Aug 9, 2024

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

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)

@Rigidity
Copy link
Contributor Author

Closing for now

@Rigidity Rigidity closed this Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants