archethic-node
archethic-node copied to clipboard
Mining: check for unknown origin as part of the valid pending transaction
Description
Differentiate an invalid proof of work from an unknown origin. Fixes #1539
Type of change
- Improvment
How Has This Been Tested?
I modified the CLI to send invalid origin signature. Then I sent a transaction with the CLI
Checklist:
- My code follows the style guidelines of this project
- I have performed a self-review of my own code
- I have commented my code, particularly in hard-to-understand areas
- I have made corresponding changes to the documentation
- My changes generate no new warnings
- I have added tests that prove my fix is effective or that my feature works
- New and existing unit tests pass locally with my changes
- Any dependent changes have been merged and published in downstream modules