Bitcoin Forum
October 22, 2018, 12:36:51 AM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: UNOMP - How to distribute the reward based on a list?  (Read 1293 times)
.anto.
Full Member
***
Offline Offline

Activity: 162
Merit: 100


View Profile
December 05, 2015, 10:20:00 AM
 #1

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.
1540168611
Hero Member
*
Offline Offline

Posts: 1540168611

View Profile Personal Message (Offline)

Ignore
1540168611
Reply with quote  #2

1540168611
Report to moderator
1540168611
Hero Member
*
Offline Offline

Posts: 1540168611

View Profile Personal Message (Offline)

Ignore
1540168611
Reply with quote  #2

1540168611
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1540168611
Hero Member
*
Offline Offline

Posts: 1540168611

View Profile Personal Message (Offline)

Ignore
1540168611
Reply with quote  #2

1540168611
Report to moderator
.anto.
Full Member
***
Offline Offline

Activity: 162
Merit: 100


View Profile
December 05, 2015, 10:52:59 AM
 #2

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.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!