Skip to content

feat: add #[must_use] to BlockCheckResult and ProcessBlockHeaderResult#189

Open
alexanderwiederin wants to merge 1 commit into
sedited:masterfrom
alexanderwiederin:must-use
Open

feat: add #[must_use] to BlockCheckResult and ProcessBlockHeaderResult#189
alexanderwiederin wants to merge 1 commit into
sedited:masterfrom
alexanderwiederin:must-use

Conversation

@alexanderwiederin
Copy link
Copy Markdown
Collaborator

closes #187

Changes

Added #[must_use] to BlockCheckResult and ProcessBlockHeaderResult to warn when validation results are silently ignored.

I have omitted #[must_use] from ProcessBlockResult as ignoring it is a valid use case. Callers may simply want to submit a block without acting on whether it was new or duplicate.

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.

feat: Add #[must_use] to validation result enums

1 participant