modifications to: Support for splitting shares across multiple userna…#1
modifications to: Support for splitting shares across multiple userna…#1patrick-patel wants to merge 1 commit intoluke-jr:split_usernamefrom
Conversation
766b259 to
a48c5f0
Compare
|
@luke-jr reverted back to your original solution since your comments made a lot of sense and I had originally been using your solution incorrectly causing errors (lacked the % between users). After testing I did find a couple issues:
|
Ugh, that limits us to only tilde I think :(
I have this noted as 127 characters, so potentially up to 4 legacy addresses. |
I handled at least these 3 scenarios in my branch, are you thinking tilde to make it more robust and prevent other edge cases related to url encoding?
Legacy addresses are 34 characters, correct? With 3 users, double digit percentage splits for each and the 2 divider %, it comes out to 113. A fourth legacy address + the divider % before (no need for trailing percentage value) gives 35 for a fourth address to be tacked on totaling 148 characters. So 3 users without worker names (or short worker names) will work, but a 4th is definitely out. |
And not burn the short username length limits
26-35 characters If your percentages don't add up to 100%, the remainder goes to the |
Ok, so this format is what you're thinking? I can revert this branch back to yours and update it to that format.
Got it! Honestly don't think more than 4 splits would ever be a common occurrence so no need to over complicate it to try and handle more. |
|
I'm not sure I like "burning" the apparently-only character we have left (tilde) without some way of extending it in the future again. Let me know if you have any ideas there. |
|
BTW, what miner(s) send the URL escaped usernames? |
Whatsminer m30s+ is what I'm testing with. We could just go the % route and handle the url encoding (what I included in this pr) unless you are worried about it being too fragile. |
|
Closed the upstream PR in favour of OCEAN-xyz#112 Could you review that? |
Yep, I can do that |
Implementation of Username Percentage-Based Mining Distribution
This pull request implements a username format that allows mining rewards to be distributed between multiple Bitcoin addresses using a percentage-based allocation system. The format address1%nn[.n][%address2%nn[.n][...]] directs a specified percentage of mining shares to each address.