Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

feat!: convenient broadcast errors #266

Merged
merged 5 commits into from
Sep 20, 2021
Merged

feat!: convenient broadcast errors #266

merged 5 commits into from
Sep 20, 2021

Conversation

shumkov
Copy link
Member

@shumkov shumkov commented Sep 17, 2021

Issue being fixed or feature implemented

Provide detailed error information for the broadcast state transition method, including DAPI/Drive common errors and DPP consensus errors.

What was done?

  • Throw StateTransitionBroadcastError in case if local basic validation failed
  • Add DAPI Client and DPP errors as a cause to StateTransitionBroadcastError

How Has This Been Tested?

With tests

Breaking Changes

StateTransitionBroadcastError#getData is removed. Use StateTransitionBroadcastError#getCause to get additional details.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@shuplenkov shuplenkov marked this pull request as ready for review September 20, 2021 09:26
@shumkov shumkov changed the title feat: convenient broadcast errors feat!: convenient broadcast errors Sep 20, 2021
@shumkov shumkov merged commit c8d3e2b into v0.21-dev Sep 20, 2021
antouhou pushed a commit that referenced this pull request Oct 25, 2021
Co-authored-by: Konstantin Shuplenkov <konstantin.shuplenkov@dash.org>
antouhou pushed a commit that referenced this pull request Oct 25, 2021
Co-authored-by: Konstantin Shuplenkov <konstantin.shuplenkov@dash.org>
antouhou pushed a commit that referenced this pull request Oct 26, 2021
Co-authored-by: Konstantin Shuplenkov <konstantin.shuplenkov@dash.org>
@shumkov shumkov deleted the convenient-errors branch October 26, 2021 15:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants