-
Notifications
You must be signed in to change notification settings - Fork 71
[DRK] do not modify coinbasevalue in generate_job #124
[DRK] do not modify coinbasevalue in generate_job #124
Conversation
@ahmedbodi can you please merge this properly with yours |
With that change the block value is not inserted into the DB correctly. It is logged as full value not without the MN payment... Found 1 hour, 33 minutes ago |
|
|
@fcases you are correct, it's 37.5% now. But it takes payee_amount from getblocktemplate rpc data first which is calculated by darkcoind itself so you should never hit "coinbase/5". Anyway this PR is not about fixing 20%, it's about cases where coinbase value gets decreased many times leading to incorrect calculations of final coinbase tx. At least that's how I understood where @crackfoo problems came from. |
Ahh.. I though I could modify it, oh well.. I'm not very familiar with the way this pool works (and python in general tbh), just trying to figure out and help. So there is another attempt to find a workaround, give it a try pls. |
Hrmm ok. So only 2 changes then to the original file? |
looks like the latest updates/changes are ok. Just found a block and was inserted properly and not orphaned. Coinbase Value 3.48 DRK (with 0.000000 in fees) XsBnFfVrUiEEWwutDbKEHvEVLheyAwY96J: 2.08928568 (MN) |
Will let it roll for a few more blocks to know for sure. |
@UdjinM6 Good catch. I won't have time to play with this until the weekend, but it looks pretty much correct. A cleaner way to do it would be to set a new variable and use that, rather than modifying the coinbase again at the end. |
So far so good testing the changes. Rewards are logged appropriately and blocks are not orphans. 5 good blocks since the changes. Thanks @UdjinM6 |
@ericecook To confirm, it looks like the change in darkcoin that occured was If that's the case the much cleaner solution would be to simply remove 369 I think. If so I'll do that and merge. |
@icook I'm not sure if that is the case, but regardless we need something similar to 369 because as UdjinM6 pointed out it is quite possible for this code to be run multiple times in between GBT - which causes the coinbase value to be incorrectly decremented (monitor_network.py LN 370) |
@icook I looked it up, the stratum code still splits it out of the coinbase - so I went ahead and merged this w/ a few tweaks |
This addresses #123