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

CAD-640: TraceForgedInvalidBlock trace: dump the why -- the InvalidBlockReason #605

Merged
merged 4 commits into from
Feb 27, 2020

Conversation

deepfire
Copy link
Contributor

@deepfire deepfire commented Feb 27, 2020

Re-submission of #585 -- which was irreversibly closed by Github due to its base having been merged.

  1. Move ToObjectOrphans to cardano-config, because the instances are now needed in earlier code.
  2. Factor defaultTextTransformer to reduce boilerplate in ToObjectOrphans
  3. Add a small bunch of ToObject instances to detail the error coming from TraceForgedInvalidBlock.
  4. Add a humaniser for the structured TraceForgeEvent
  5. Reindent ToObjectOrphans.hs

Issue: #579

Checklist

  • This PR contains all the work required to resolve the linked issue.

  • The work contained has sufficient documentation to describe what it does and how to do it.

  • The work has sufficient tests and/or testing.

  • I have committed clear and descriptive commits. Be considerate as somebody else will have to read these.

  • I have added the appropriate labels to this PR.

@deepfire deepfire force-pushed the serge/thoroughly-trace-malforgery branch from 4e6d5a6 to be50ce2 Compare February 27, 2020 15:23
@intricate intricate requested a review from CodiePP February 27, 2020 15:24
@deepfire
Copy link
Contributor Author

@intricate, @CodiePP and @dcoutts have already approved this PR in its previous incarnation -- this is only different in indentation, alignnment and your suggestion to use showPoint.

@deepfire deepfire force-pushed the serge/thoroughly-trace-malforgery branch 3 times, most recently from d6f94f3 to 577c40f Compare February 27, 2020 15:48
@deepfire deepfire force-pushed the serge/thoroughly-trace-malforgery branch from 577c40f to 3b75ab4 Compare February 27, 2020 16:42
@deepfire deepfire force-pushed the serge/thoroughly-trace-malforgery branch from 3b75ab4 to 14508cd Compare February 27, 2020 16:48
@deepfire
Copy link
Contributor Author

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Feb 27, 2020

@iohk-bors iohk-bors bot merged commit fa815ee into master Feb 27, 2020
@iohk-bors iohk-bors bot deleted the serge/thoroughly-trace-malforgery branch February 27, 2020 18:50
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.

2 participants