cryptiumlabs / backerei

Automated reward payment & account management for Tezos bakers.
https://cryptium.ch/networks/tezos
GNU General Public License v3.0
49 stars 11 forks source link

Deviation of bonus calculation data #22

Closed focusshell closed 5 years ago

focusshell commented 5 years ago

The dividend data calculated by your program is about 1.5 different from the data calculated manually by us. How can we solve this problem?

cwgoes commented 5 years ago

Likely they differ because backerei calculates idealized rewards as opposed to realized ones.

Without knowing how you're calculating data manually, it's difficult to answer your question precisely.

chiptus commented 5 years ago

I also see a difference between what backerei shows us to what tzscan shows

cwgoes commented 5 years ago

I also see a difference between what backerei shows us to what tzscan shows.

Yes, TzScan will show realized rewards, so the values shown (and paid) by Backerei will generally be higher.

It's easy to alter the code to pay realized rewards instead; would gladly accept a PR which added that as a configuration option.

focusshell commented 5 years ago

We are very anxious for you to answer this question.

focusshell commented 5 years ago

image I made a mistake when I executed the dividend command of the program. How can I sort out this mistake?

cwgoes commented 5 years ago

I made a mistake when I executed the dividend command of the program. How can I sort out this mistake?

This doesn't seem related to payment calculations.

Check that tezos-client can be executed on your shell (try running that command manually).

focusshell commented 5 years ago

image It works well.

focusshell commented 5 years ago

How to run it manually, our tezo-client can be executed in the shell

focusshell commented 5 years ago

When we entered the password, a new error occurred. image

cwgoes commented 5 years ago

That sounds like you need to specify a different config file in backerei.yaml (which is passed to tezos-client using the -c flag).

focusshell commented 5 years ago

That sounds like you need to specify a different config file in backerei.yaml (which is passed to tezos-client using the -c flag).

What should I do? How do I specify the path of other configuration files in the configuration file, and what is the additional configuration path specified?

focusshell commented 5 years ago

How to write this config file

focusshell commented 5 years ago

image After we changed config, we found a new error

chiptus commented 5 years ago

@focusshell you were commenting on a wrong issue.

Can we re-open this, as the original issue is still a problem?

focusshell commented 5 years ago

@chiptus We have a new problem.

chiptus commented 5 years ago

so open a new issue, please don't spam issues with unrelated data

focusshell commented 5 years ago

No, the problem we encountered was rejected by the MemPool pre-filter

cwgoes commented 5 years ago

I don't think there are any actionable items here. If you want to add alternative fee calculation methods feel free to submit a pull request. I answered the question about mempool filtering here - https://github.com/cryptiumlabs/backerei/issues/21#issuecomment-453850987.