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

feat: remove extra validation #4981

Merged

Conversation

SWvheerden
Copy link
Collaborator

Description

This removes extra validation from transaction protocols.

Motivation and Context

The transaction protocols do a lot of extra unnecessary validation.
For example:
The code will run add_output(output), which will validate the range_proof and signatures.
The next line will run tx.build(), which will again validate the range_proof and signatures.
While these tests are not expensive, they are not free either.

The second problem is that when we do aggregate transactions such as with branch: feature-m-of-n these validations fail as the signatures are partial until right before we build the final transaction

How Has This Been Tested?

Passes all unit tests

Fixes: #4813

@stringhandler stringhandler merged commit 3f1ebf6 into tari-project:development Dec 1, 2022
@SWvheerden SWvheerden deleted the sw_redue_tx_validation branch December 7, 2022 04:39
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.

Transaction builder over validates
2 participants