Author

Topic: UNOMP - How to distribute the reward based on a list? (Read 1431 times)

full member
Activity: 179
Merit: 131
I changed my mind.  Cheesy

I think it is better to keep the "address" setting as fall back in case there would be something wrong with the list of addresses for the "rewardRecipients", e.g. the list is corrupted causing an empty list. So that manual distribution of the reward from the "address" can still be done as a fall back.
full member
Activity: 179
Merit: 131
According to UNOMP sample config on github, we can distribute the reward by setting it on the pool config like below
Code:
    "address": "mi4iBXbBsydtcc5yFmsff2zCFVX4XG7qJc", //Address to where block rewards are given

    /* Block rewards go to the configured pool wallet address to later be paid out to miners,
       except for a percentage that can go to, for examples, pool operator(s) as pool fees or
       or to donations address. Addresses or hashed public keys can be used. Here is an example
       of rewards going to the main pool op and a pool co-owner. Can also be set for mandatory
       donation coins like GRE and DMD. */
    "rewardRecipients": {
        "n37vuNFkXfk15uFnGoVyHZ6PYQxppD3QqK": 1.5, //1.5% goes to pool op
        "mirj3LtZxbSTharhtXvotqtJXUY7ki5qfx": 0.5 //0.5% goes to a pool co-owner
    },

I believe this setting is only being loaded once at the time we start the pool.

I would like to use only the "rewardRecipients", so no "address" setting. And I would like to maintain the list of addresses for the "rewardRecipients" outside UNOMP and I would like UNOMP to regularly load that list.

Does anybody have suggestion on how to achieve that?

Thanks in advance for your help.
Jump to: