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 50 forks source link

Use the snapshot cycle first block level to get the block. #596

Closed novalis closed 2 years ago

novalis commented 2 years ago

With short cycles, the current level might be in a different cycle, causing the RPC to fail.

Work effort: 3 hours (mostly spent learning what any of this code was doing, and figuring out how to get reasonable error messages -- see #597).

nicolasochem commented 2 years ago

Thanks! I tried this against mainnet RPC for one mainnet baker as a dry run and your branch and ithaca2 gave me the same calculation csv file, so I'm merging into ithaca2.

@jdsika we should really look into merging ithaca2 into master.