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

standalone: Add transaction sanity check. #2949

Merged

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented May 13, 2022

This adds a new exported function to the blockchain/standalone module named CheckTransactionSanity which can be used to perform basic transaction sanity checks.

It also updates the documentation and includes comprehensive tests.

The primary motivation for this change is that there are several consumers that currently make use of this functionality and it lives in the blockchain package which is slated to made internal and therefore would otherwise become inaccessible to external consumers.

Another nice benefit of making this logic available via the blockchain/standalone module is that it intentionally requires way less
dependencies which is ideal for consumers.

@davecgh davecgh added this to the 1.8.0 milestone May 13, 2022
@davecgh davecgh force-pushed the blockchain_standalone_checktransactionsanity branch from 8a29adb to 3309101 Compare May 13, 2022 23:53
@chappjc
Copy link
Member

chappjc commented May 13, 2022

Thanks. Dex uses it.

This adds a new exported function to the blockchain/standalone module
named CheckTransactionSanity which can be used to perform basic
transaction sanity checks.

It also updates the documentation and includes comprehensive tests.

The primary motivation for this change is that there are several
consumers that currently make use of this functionality and it lives in
the blockchain package which is slated to made internal and therefore
would otherwise become inaccessible to external consumers.

Another nice benefit of making this logic available via the
blockchain/standalone module is that it intentionally requires way less
dependencies which is ideal for consumers.
@davecgh davecgh force-pushed the blockchain_standalone_checktransactionsanity branch from 3309101 to 0f26059 Compare May 27, 2022 17:40
@davecgh davecgh merged commit 0f26059 into decred:master May 27, 2022
@davecgh davecgh deleted the blockchain_standalone_checktransactionsanity branch May 27, 2022 17:54
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.

None yet

3 participants