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

Refactor: update dry run options and cleanup validator #631

Closed rvermootenct closed 1 year ago

rvermootenct commented 1 year ago

name: Pull Request about: Create a pull request to make a contribution 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 . The following steps were performed:

Allowing the user girl more granular control of how she would like to use the software.

I also spent some time continuing to clean up launch common by moving all the validation stuff into it's own file, creating new functions for each validation step and tested them individually. Before this was a bit of a black box and the nesting was getting very confusing. Tried to clean that up.

Work effort: 8

jdsika commented 1 year ago

Let's aim for a merge today

jdsika commented 1 year ago

DID YOU TEST WITH A GHOSTNET BAKER?

jdsika commented 1 year ago

No ENUM use?

nicolasochem commented 1 year ago

Thanks. What's a "Consumer"?

Maybe find a better description for this mode of dry-run. What does it not do?

As far as I understand, the "consumer" takes the theoretical payouts and puts them into discrete operations and batches.

What's the use case for running "dry-run no consumer"?

In my opinion, it would be much better to remove the concept of "producer" and "consumer" altogether, see this discussion.

So at least let's not make it worse by surfacing this terminology to the user.

jdsika commented 1 year ago

hm, you may be right. I mean we currently do expose this to the user. It would have been a refactor which explains the differerent exisitng types of dry-runs better. It was confusing to me at least. But we can just deprecate the "no_consumer" option and clean it up internally later?