Skip to content

feat(core): BlockValidationState should implement Debug #181

@alexanderwiederin

Description

@alexanderwiederin

BlockValidationState currently does not implement Debug.

Something like the following would make development easier:

rustimpl fmt::Debug for BlockValidationState {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        f.debug_struct("BlockValidationState")
            .field("mode", &self.mode())
            .field("result", &self.result())
            .finish()
    }
}

ProcessBlockHeaderResult and CheckBlockResult (if merged in #177), should then also implement Debug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions