tezos-reward-distributor-organization / tezos-reward-distributor

Tezos Reward Distributor (TRD): A reward distribution software for tezos bakers.
https://tezos-reward-distributor-organization.github.io/tezos-reward-distributor/
GNU General Public License v3.0
87 stars 51 forks source link

Handle simulation errors and mark payments as failed #623

Closed AndrewKishino closed 1 year ago

AndrewKishino commented 1 year ago

name: Handle simulation errors and mark payments as failed about: General try/catch for simulate_single_operation when calling attempt_single_batch labels:


IMPORTANT NOTICE: I read and understood the guidelines for contributions to the TRD. The contribution may qualify for being compensated by the TRD grant if approved by the maintainers.

This PR resolves the issue #621. The following steps were performed:

Work effort: 1hrs

jdsika commented 1 year ago

We could argue if we put AVOIDED or FAILED in there.

AndrewKishino commented 1 year ago

My understanding is that FAILED payments would be filtered into the failed reports and are retry-able whereas AVOIDED payments are not considered FAILED and are not retried.

jdsika commented 1 year ago

Yes, line 707 is therefore inconsistent and probably wrong?