You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-1Lines changed: 28 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,6 +106,33 @@ Ensure you have "killall" installed on your system (*psmisc* package on Debian-l
106
106
107
107
If the node and Gateway are on different systems, you may need to utilize the "NOTIFY" endpoint on the Gateway's dashboard/API instead.
108
108
109
+
## Username Splitting
110
+
111
+
DATUM Gateway supports splitting mining rewards between two Bitcoin addresses using a percentage-based username format. This allows miners to allocate shares between different addresses, such as sending a portion to a donation address or sharing with a partner.
112
+
113
+
To use this feature:
114
+
115
+
1. Format your mining username in one of these ways:
116
+
```
117
+
address1%50address2%50
118
+
```
119
+
or with worker names:
120
+
```
121
+
address1.worker1%50address2.worker2%50
122
+
```
123
+
124
+
2. The percentages should add up to 100 (e.g., 50/50, 70/30, 90/10)
125
+
126
+
3. The first two digits after the % sign determine the percentage of shares allocated to that address.
127
+
128
+
Examples:
129
+
-`3BDLR6hSE3efCztWeTqXcPJARuwmuaa9KP%503PxWT7GJ7WPNeGwMdSN4UoFfZgcuc5SLwP%50` - Allocates 50% of shares to each address
130
+
-`3BDLR6hSE3efCztWeTqXcPJARuwmuaa9KP.rig1%703PxWT7GJ7WPNeGwMdSN4UoFfZgcuc5SLwP.donation%30` - Allocates 70% of shares to the first address (with worker name "rig1") and 30% to the second address (with worker name "donation")
131
+
132
+
The worker names are preserved when submitting shares to the pool, allowing you to track hashrate by worker name in pool statistics.
133
+
134
+
Note: The actual distribution of shares will approximate the specified percentages over time, but exact distribution depends on the randomness of share hashes.
135
+
109
136
## Template/Share Requirements for Pooled Mining
110
137
111
138
- Must be a valid block and conform to current Bitcoin consensus rules
@@ -129,4 +156,4 @@ Be sure you have failover settings on your miners. As a best practice, when mini
129
156
130
157
## License
131
158
132
-
The DATUM Gateway (including the DATUM Protocol) is free open source software and released under the terms of the MIT license. See LICENSE.
159
+
The DATUM Gateway (including the DATUM Protocol) is free open source software and released under the terms of the MIT license. See LICENSE.
} elseif (dot_pos&&datum_config.datum_pool_pass_workers&&datum_config.datum_pool_pass_full_users) { // If both settings are true and we have a username with a dot, respect the worker name
1342
+
i+=snprintf(username, 385, "%s", pow->username); // Handle usernames like "btcAddress.worker" by keeping them intact
1343
+
DLOG_DEBUG("POW: Passing complete username with worker: '%s'", pow->username);
1344
+
} else {
1345
+
i+=snprintf(username, 385, "%s.%s", datum_config.mining_pool_address, pow->username); // Standard format with no dot, append as worker
1346
+
DLOG_DEBUG("POW: Using worker name: '%s.%s'", datum_config.mining_pool_address, pow->username);
0 commit comments