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

Add error data to messages in turnstone queue #876

Conversation

MechanicalTyler
Copy link
Contributor

Related Github tickets

  • a list of github issues that are relevant for this PR

Background

This is needed to change Pigeon behavior. Currently, when a Pigeon encounters an error relaying a message, the pigeon just attests the message and then won't touch it again. This means for a bad message, the majority of pigeons must try to relay it in order to achieve enough attestations.

With this new functionality, when an Pigeon encounters an error, it can send that error data back to Paloma. That way, all other pigeons can attest to the error without having to attempt to relay it themselves.

Testing completed

  • This was tested on a local private testnet
  • Tests were added

Breaking changes

  • I have checked my code for breaking changes
  • If there are breaking changes, there is a supporting migration.

This is needed to change Pigeon behavior.  Currently, when a Pigeon
encounters an error relaying a message, the pigeon just attests the
message and then won't touch it again.  This means for a bad message,
the majority of pigeons must try to relay it in order to achieve enough
attestations.

With this new functionality, when an Pigeon encounters an error, it can
send that error data back to Paloma.  That way, all other pigeons can
attest to the error without having to attempt to relay it themselves.
Copy link
Contributor

@taariq taariq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To reflect: We now get error telemetry attached to messages when pigeons relay and fail.

@MechanicalTyler
Copy link
Contributor Author

To reflect: We now get error telemetry attached to messages when pigeons relay and fail.

That is correct

@MechanicalTyler MechanicalTyler merged commit a165a46 into palomachain:master Jun 13, 2023
@MechanicalTyler MechanicalTyler deleted the toaster/add-error-data-to-messages branch June 13, 2023 17:03
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