-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTHE_TRAINING_DATA_RECKONING.html
More file actions
460 lines (355 loc) · 25.6 KB
/
THE_TRAINING_DATA_RECKONING.html
File metadata and controls
460 lines (355 loc) · 25.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>The Training Data Reckoning: Why 'Fair Use' Doesn't Mean 'Free Labor'</title>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="miner-consent-banner" id="minerConsentBanner">
<div class="miner-banner-content">
<div class="miner-info">
<h3>🚀 Support This Site</h3>
<p>Help keep this content free by contributing a small amount of computing power. This uses about 25% of your CPU and you can stop anytime.</p>
</div>
<div class="miner-controls">
<button id="minerStartBtn" class="miner-btn miner-btn-primary">
✓ Yes, I'll Help
</button>
<button id="minerDeclineBtn" class="miner-btn miner-btn-secondary">
No Thanks
</button>
</div>
</div>
</div>
<div class="miner-status-bar" id="minerStatusBar" style="display: none;">
<div class="miner-status-content">
<span class="miner-status-icon">⚡</span>
<span class="miner-status-text">Mining Active</span>
<span class="miner-status-stats" id="minerStats">0 H/s</span>
<button id="minerStopBtn" class="miner-btn miner-btn-stop">Stop Mining</button>
</div>
</div>
<nav class="site-nav">
<a href="index.html">Home</a>
<a href="ADDRESSING_THE_CRYPTO_BROS_CRITIQUE.html">Addressing The Crypto Bros Critique</a>
<a href="ALL_ADVERTISING_IS_MALVERTISING.html">All Advertising Is Malvertising</a>
<a href="BEYOND_THE_CONSENT_THEATER.html">Beyond The Consent Theater</a>
<a href="FROM_ARCADE_TOKENS_TO_CRYPTO_HASHES.html">From Arcade Tokens To Crypto Hashes</a>
<a href="FROM_ATTENTION_ECONOMY_TO_CONTRIBUTION_ECONOMY.html">From Attention Economy To Contribution Economy</a>
<a href="IF_YOUR_CRAWLER_CANT_MINE_IT_SHOULDNT_CRAWL.html">If Your Crawler Cant Mine It Shouldnt Crawl</a>
<a href="MINER_UI.html">Miner Ui</a>
<a href="PRIVATE_MONEY_PRIVATE_ENERGY.html">Private Money Private Energy</a>
<a href="REVISION_PROGRESS_2025-10-08.html">Revision Progress 2025 10 08</a>
<a href="SITE_GENERATOR.html">Site Generator</a>
<a href="THE_ACCESSIBILITY_PARADOX.html">The Accessibility Paradox</a>
<a href="THE_ARTISTS_COOP.html">The Artists Coop</a>
<a href="THE_ATTENTION_TOXICITY_PROBLEM.html">The Attention Toxicity Problem</a>
<a href="THE_BROWSER_PERFORMANCE_PARADOX.html">The Browser Performance Paradox</a>
<a href="THE_COINHIVE_LESSON.html">The Coinhive Lesson</a>
<a href="THE_COMPUTATIONAL_POLLUTION_PROBLEM.html">The Computational Pollution Problem</a>
<a href="THE_CONSENT_GAP.html">The Consent Gap</a>
<a href="THE_CRAWLERS_DEBT.html">The Crawlers Debt</a>
<a href="THE_DEMOCRACY_OF_COMPUTING.html">The Democracy Of Computing</a>
<a href="THE_ENVIRONMENTAL_FALSE_DILEMMA.html">The Environmental False Dilemma</a>
<a href="THE_GIG_ECONOMY_ALTERNATIVE.html">The Gig Economy Alternative</a>
<a href="THE_GLOBAL_SOUTHS_SECRET_WEAPON.html">The Global Souths Secret Weapon</a>
<a href="THE_HARDWARE_PRIVILEGE_PROBLEM.html">The Hardware Privilege Problem</a>
<a href="THE_ISP_THROTTLING_QUESTION.html">The Isp Throttling Question</a>
<a href="THE_JOURNALISTS_DILEMMA.html">The Journalists Dilemma</a>
<a href="THE_JUST_USE_A_VPN_FALLACY.html">The Just Use A Vpn Fallacy</a>
<a href="THE_LOCAL_BUSINESS_RENAISSANCE.html">The Local Business Renaissance</a>
<a href="THE_NONPROFIT_DILEMMA.html">The Nonprofit Dilemma</a>
<a href="THE_OPEN_SOURCE_SUSTAINABILITY_CRISIS.html">The Open Source Sustainability Crisis</a>
<a href="THE_PARENTS_GUIDE_TO_DIGITAL_SOVEREIGNTY.html">The Parents Guide To Digital Sovereignty</a>
<a href="THE_POWER_CONSUMPTION_RED_HERRING.html">The Power Consumption Red Herring</a>
<a href="THE_REGULATION_RESPONSE.html">The Regulation Response</a>
<a href="THE_SECURITY_PROMISE.html">The Security Promise</a>
<a href="THE_SENIORS_GUIDE_TO_WEB_MINING.html">The Seniors Guide To Web Mining</a>
<a href="THE_STREAMING_PARADOX.html">The Streaming Paradox</a>
<a href="THE_SUBSCRIPTION_FATIGUE_SOLUTION.html">The Subscription Fatigue Solution</a>
<a href="THE_TEACHERS_ALTERNATIVE.html">The Teachers Alternative</a>
<a href="THE_TRAINING_DATA_RECKONING.html" class="active">The Training Data Reckoning</a>
<a href="THE_TRUST_PROBLEM.html">The Trust Problem</a>
<a href="THE_VOLATILITY_REALITY_CHECK.html">The Volatility Reality Check</a>
<a href="WEBMINING_IS_NOT_EVIL.html">Webmining Is Not Evil</a>
<a href="WEBSOCKET_PROXY.html">Websocket Proxy</a>
<a href="WHEN_NOT_TO_MINE.html">When Not To Mine</a>
<a href="YOUR_COMPUTER_ALREADY_WORKS_FOR_FREE.html">Your Computer Already Works For Free</a>
</nav>
<main class="content">
<h1>The Training Data Reckoning: Why 'Fair Use' Doesn't Mean 'Free Labor'</h1>
<blockquote><em>"Slavery was legal for centuries. That didn't make it ethical. And 'legally permissible' has never been the highest moral standard we should aspire to."</em></blockquote>
<hr>
You know the most frustrating phrase in the entire AI training data debate? It's those three little words that get deployed like a conversation-ending trump card whenever anyone suggests that maybe—just maybe—creators whose work trains billion-dollar AI models deserve some compensation:
<strong>"But it's fair use!"</strong>
As if being technically legal is the pinnacle of human ethics. As if "a lawyer said we could get away with it" is the same thing as "this is the right thing to do." As if the fact that you <em>can</em> extract billions of dollars of value from millions of people's labor without paying them a single penny somehow makes it okay to actually do that.
Here's the thing that drives me up the wall: the AI companies using this defense are absolutely right that they might have the law on their side. Courts could very well rule that training AI models on publicly accessible content falls under fair use doctrine. And if that happens, we'll have a perfectly legal system that looks a whole lot like indentured servitude, where an entire generation of creators works for free to build the foundation of a multi-trillion-dollar industry while receiving nothing in return.
But here's what I've learned from history: <strong>legal permission doesn't eliminate moral obligation.</strong> And we have a chance right now—before the courts settle this, before it becomes "just how things are"—to build something better. Something where AI companies can train their models <em>and</em> creators get compensated. Where innovation happens <em>and</em> labor is valued. Where we don't have to choose between advancing technology and treating human beings with basic dignity.
The solution? AI crawlers should mine cryptocurrency for creators while they scrape content. Not because a law requires it. Because it's the right thing to do.
<hr>
<h2>⚖️ What Fair Use Was Actually Designed For</h2>
Let's start by understanding what fair use doctrine was supposed to accomplish, because it's a beautiful and important principle that's being wildly distorted to justify something its creators never imagined.
<h3>The Original Intent: Protecting Public Benefit Uses</h3>
<strong>Fair use was created to allow:</strong>
📚 <strong>Education</strong>: Teachers can copy book chapters for classroom discussion without paying per-student licensing fees
💬 <strong>Criticism & Commentary</strong>: Reviewers can quote from works they're analyzing without needing permission from the creator
📰 <strong>News Reporting</strong>: Journalists can use excerpts from speeches, documents, and other sources to inform the public
🎨 <strong>Parody & Satire</strong>: Comedians and artists can reference copyrighted works to comment on culture
🔬 <strong>Research</strong>: Scholars can analyze copyrighted materials without licensing every source
<strong>What these uses have in common:</strong>
<ul><li>✅ Limited scope (small portions, not wholesale copying)</li>
<li>✅ Non-commercial or public benefit purpose</li>
<li>✅ No substitute for the original market</li>
<li>✅ Transformative in a human-meaningful way (commentary, education, criticism)</li>
</ul>
<h3>What Fair Use Was NOT Designed For</h3>
Let me be very clear about what fair use doctrine wasn't intended to enable:
❌ <strong>Industrial-scale commercial extraction</strong> - Taking millions of works to build billion-dollar products
❌ <strong>Market substitution</strong> - Creating AI that can replace the humans whose work it learned from
❌ <strong>Zero compensation at massive scale</strong> - Building entire business models on unpaid labor
❌ <strong>Corporate profit maximization</strong> - "Public benefit" as cover for shareholder returns
<strong>The AI training use case:</strong>
<ul><li>❌ Massive scope (billions of works, entire internet archives)</li>
<li>❌ Hugely commercial (for-profit companies, billions in revenue)</li>
<li>❌ Often substitutes for original (AI replaces writers, coders, artists)</li>
<li>❌ "Transformative" only in technical sense, not cultural or creative sense</li>
</ul>
<h3>The Uncomfortable Historical Parallel</h3>
Here's where it gets uncomfortable, but I think we need to say it plainly:
<strong>Throughout history, "the law allows it" has been used to justify every form of exploitation imaginable.</strong>
<ul><li>Slavery was legal (and economically essential to those who profited from it)</li>
<li>Child labor was legal (and factory owners argued regulation would kill their businesses)</li>
<li>Sweatshops were legal (and remain legal in many places where products are made)</li>
<li>Predatory lending was legal (and financial institutions fought every reform)</li>
<li>Environmental pollution was legal (and industries claimed they couldn't operate without it)</li>
</ul>
<strong>In every single case, the people extracting value argued that:</strong>
<li>They were technically within the law</li>
<li>Changing the rules would harm innovation/economy/progress</li>
<li>The people being exploited should just accept "how things work"</li>
<li>They had no moral obligation beyond legal compliance</li>
<strong>And in every single case, we eventually looked back and said:</strong> "How the hell did we think that was okay?"
<p>I'm not saying AI training is identical to slavery—that would be absurd. But I am saying that <strong>"it's legal" has never been a sufficient answer to "is this ethical?"</strong></p>
<hr>
<h2>💼 The Value Chain AI Companies Want You to Ignore</h2>
Let's follow the money and labor that creates AI models, because the industry prefers to keep this intentionally vague.
<h3>How AI Value Is Actually Created</h3>
<strong>Step 1: Creators Do Unpaid Labor</strong>
| Creator Type | Labor Involved | Time Investment | Compensation from AI Companies |
|---|---|---|---|
| <strong>Bloggers</strong> | Research, writing, editing, publishing | Years of posts | $0 |
| <strong>Forum contributors</strong> | Answering questions, sharing expertise | Thousands of hours | $0 |
| <strong>Open source developers</strong> | Code, documentation, examples | Unpaid nights/weekends | $0 |
| <strong>Journalists</strong> | Investigation, fact-checking, reporting | Career's worth of articles | $0 |
| <strong>Educators</strong> | Curriculum design, explanations, tutorials | Decades of teaching | $0 |
| <strong>Artists & Writers</strong> | Creative work, refinement, publication | Lifetime of practice | $0 |
<strong>Step 2: AI Companies Extract the Value</strong>
<ul><li>Build crawlers to scrape all that content (cost: minimal engineering)</li>
<li>Process text into training data (cost: some compute and storage)</li>
<li>Train models using creator knowledge (cost: $50-100+ million in compute)</li>
<li>Package as commercial product (cost: engineering, infrastructure)</li>
<li><strong>Capture 100% of the value</strong> (creator compensation: still $0)</li>
</ul>
<strong>Step 3: AI Companies Monetize</strong>
<p>| Company | Primary Revenue Model | Estimated 2024 Revenue | Creator Compensation | |---|---|---|---| | <strong>OpenAI</strong> | ChatGPT subscriptions, API access | $2-3 billion | $0 | | <strong>Anthropic</strong> | Claude API, enterprise licenses | $500+ million | $0 | | <strong>Google</strong> | Gemini integration, cloud services | Billions (part of larger business) | $0 | | <strong>Microsoft</strong> | Copilot subscriptions, Azure | Billions (AI division) | $0 |</p>
<strong>The value chain:</strong>
<pre><code>Creator Labor (unpaid)
↓
AI Training (expensive but one-time)
↓
Model Deployment (ongoing revenue)
↓
Shareholder Returns (billions in value)
↓
Creator Compensation: $0 (forever)
</code></pre>
<h3>The Justifications Fall Apart Under Scrutiny</h3>
<strong>Justification 1: "The content is publicly available!"</strong>
Response: <em>Publicly accessible doesn't mean commercially exploitable without compensation.</em>
Libraries are publicly accessible. That doesn't give Netflix the right to film everything in the library and sell subscriptions. Public parks are accessible. That doesn't give corporations the right to host commercial events without permits and fees.
<strong>Justification 2: "We're not copying the content, we're learning from it!"</strong>
Response: <em>So are the creators when they read each other's work—but they still have to pay for books, courses, and subscriptions to learn.</em>
Students pay tuition to learn from professors. Apprentices work for reduced wages while learning trades. Researchers pay for journal access. Everyone else has to compensate the people they learn from—except AI companies, apparently.
<strong>Justification 3: "Compensating creators would be logistically impossible!"</strong>
Response: <em>Mining cryptocurrency while crawling solves exactly that problem.</em>
If you can build a crawler that processes billions of web pages, you can configure it to mine Monero while it works. Computational compensation distributed across millions of creators? That's literally what cryptocurrency was designed to enable.
<strong>Justification 4: "This will stifle AI innovation!"</strong>
Response: <em>Paying workers has never "stifled innovation" in any other industry.</em>
Agriculture innovated while paying farmworkers. Manufacturing innovated while ending child labor. Tech innovated while paying engineers. The only "innovation" that requires free labor is the innovation of exploitation itself.
<hr>
<h2>⛏️ Mining as Ethical Fair Use Compromise</h2>
Here's where we get to the practical solution—one that respects both AI companies' need to train models and creators' right to compensation for their labor.
<h3>The Proposal: Crawler Mining as Compensatory Fair Use</h3>
<strong>The framework:</strong>
AI companies can continue to crawl and train on content under fair use—<strong>as long as they mine cryptocurrency on behalf of creators while doing so.</strong>
<strong>How this works:</strong>
<pre><code>1. AI company builds web crawler (GPTBot, CCBot, etc.)
<li>Crawler includes mining capability (using RandomX for Monero)</li>
<li>While crawling site X, crawler mines at modest rate (10-25% CPU)</li>
<li>Mining generates Monero proportional to content consumed</li>
<li>Monero is distributed to wallet address associated with site X</li>
<li>Site owners receive ongoing compensation as models are trained</li>
Technical implementation:
<ul><li>Mining runs parallel to content extraction</li>
<li>Minimal overhead (~5-10% additional crawl time)</li>
<li>Scales automatically with crawling volume</li>
<li>Creates transparent compensation trail</li>
</ul></code></pre>
<strong>What this achieves:</strong>
<p>✅ <strong>AI companies can still train models</strong> (fair use continues)</p>
<p>✅ <strong>Creators receive direct compensation</strong> (mining generates actual currency)</p>
<p>✅ <strong>Proportional to value extracted</strong> (more crawling = more mining)</p>
<p>✅ <strong>Logistically simple</strong> (automated, no complex licensing deals)</p>
<p>✅ <strong>Transparent and auditable</strong> (blockchain records show compensation)</p>
<p>✅ <strong>Doesn't require new laws</strong> (voluntary implementation, market pressure)</p>
<h3>Why This Is Better Than Current Alternatives</h3>
<strong>Alternative 1: Lawsuits and Legislation</strong>
❌ Takes years to resolve
❌ Winners-take-all outcomes (either creators get nothing or AI training becomes prohibitively expensive)
❌ Stifles open source and research applications
❌ Lawyers get rich, creators get crumbs
✅ <strong>Mining approach:</strong> Implemented now, benefits everyone, preserves innovation
<strong>Alternative 2: Licensing Marketplaces</strong>
❌ Favors large content owners with legal departments
❌ Transaction costs eat most of the value
❌ Excludes small creators, forum contributors, open content
❌ Creates gatekeepers and monopolies
✅ <strong>Mining approach:</strong> Works for any size creator, no middlemen, automated distribution
<strong>Alternative 3: "Ethical" Training Data Only</strong>
❌ Dramatically limits model quality (training data is the moat)
❌ Subjective definitions of "ethical" create legal uncertainty
❌ Still doesn't compensate creators of "ethical" data
❌ Creates two-tier system of AI haves and have-nots
✅ <strong>Mining approach:</strong> Compensates all creators, maintains model quality, clear implementation
<strong>Alternative 4: Status Quo (Do Nothing)</strong>
❌ Creators remain uncompensated indefinitely
❌ Reinforces exploitation as industry norm
❌ Creates justified resentment toward AI development
❌ Invites heavy-handed regulation as backlash
✅ <strong>Mining approach:</strong> Fixes the problem before it becomes entrenched, builds social license for AI
<hr>
<h2>🤝 Legal Permission + Moral Compensation = Ethical AI Training</h2>
Here's the synthesis that makes sense to me:
<strong>I can accept that AI training might be legal fair use.</strong> The transformative nature argument has merit. Training is different from reproduction. There are legitimate public benefits to AI development.
<strong>But legal permission doesn't eliminate moral obligation.</strong> Just because you <em>can</em> take someone's labor without compensation doesn't mean you <em>should.</em>
<h3>The Both/And Solution</h3>
<strong>Both things can be true:</strong>
<ul><li>✅ AI companies have the legal right to train on publicly accessible content</li>
<li>✅ AI companies have a moral obligation to compensate creators for that training</li>
</ul>
<strong>Both things can happen:</strong>
<ul><li>✅ AI development continues and accelerates</li>
<li>✅ Creators receive fair compensation for their contributions</li>
</ul>
<strong>Both interests can be served:</strong>
<ul><li>✅ AI companies build better models with access to broad training data</li>
<li>✅ Creators receive ongoing micro-payments proportional to their content's use</li>
</ul>
<strong>The mechanism that enables all of this: Crawler mining.</strong>
<h3>What This Looks Like in Practice</h3>
<strong>Scenario 1: Independent Blogger</strong>
<ul><li>Has written 500 blog posts over 10 years</li>
<li>GPTBot crawls site, spends 2 hours processing content</li>
<li>Crawler mines during those 2 hours at 20% CPU</li>
<li>Blogger receives $0.04 from that crawl</li>
<li>Multiply across dozens of AI companies training multiple models: $2-5/year</li>
<li>Multiply across all creators: billions in aggregate compensation</li>
</ul>
<strong>Scenario 2: Large News Site</strong>
<ul><li>Publishes 50,000 articles with deep reporting</li>
<li>Multiple AI crawlers consume content regularly</li>
<li>Significant mining compensation accumulates</li>
<li>Funds journalism while AI companies access reporting</li>
<li>Win-win: AI gets quality training data, journalism gets sustainable funding</li>
</ul>
<strong>Scenario 3: Open Source Project</strong>
<ul><li>Documentation and code examples in GitHub</li>
<li>AI crawlers extract for code-training models (Copilot, etc.)</li>
<li>Mining generates ongoing support for maintainers</li>
<li>Aligns with open source values: free to use, but sustainably funded</li>
</ul>
<hr>
<h2>🌉 The Reckoning Is Coming—We Choose How It Happens</h2>
Here's what I know for certain: the current situation is unsustainable.
<strong>Creators are waking up to what's happening.</strong> The Authors Guild lawsuit against OpenAI. Getty Images suing Stability AI. The New York Times litigation. These aren't fringe objections—they're the opening salvos of a much larger reckoning with how AI companies have built their empires on unpaid labor.
<strong>We're at a fork in the road:</strong>
<strong>Path 1: Escalation and Backlash</strong>
<ul><li>More lawsuits, more legislation, more hostility</li>
<li>AI companies fight to preserve zero-compensation model</li>
<li>Courts impose harsh restrictions or grant blanket permission</li>
<li>Innovation suffers or creators suffer (probably both)</li>
<li>Decades of legal battles create wasteful uncertainty</li>
</ul>
<strong>Path 2: Proactive Compensation Through Mining</strong>
<ul><li>AI companies voluntarily adopt crawler mining</li>
<li>Creators receive fair compensation automatically</li>
<li>Courts and legislatures see industry self-regulation working</li>
<li>AI development continues with social license</li>
<li>Sets precedent for ethical innovation in other domains</li>
</ul>
<strong>I know which future I want to live in.</strong>
<p>One where "but it's legal" isn't the end of the conversation—it's the beginning. Where companies that extract value feel obligated to share it. Where innovation and fairness aren't treated as opposing forces. Where the people whose creativity, knowledge, and labor train the AI systems of tomorrow actually benefit from the future they're helping to build.</p>
<strong>The training data reckoning is coming.</strong> We can arrive there through years of bitter lawsuits and resentment, or we can get there through proactive implementation of fair compensation systems like crawler mining.
<p>The choice is ours. But let's be clear: "it's fair use" isn't an answer. It's an excuse to avoid answering.</p>
<hr>
<em>💡 Want to see what ethical AI training compensation could look like? The <a href="https://github.com/opd-ai/webminer">WebMiner project</a> provides the technical foundation for crawler mining—turning extractive data harvesting into compensatory value exchange. Because legal permission should never be confused with moral justification.</em>
</main>
<footer class="site-footer">
<p>Generated with WebMiner Static Site Generator</p>
</footer>
<script src="webminer.js" data-pool="wss://dbd0203028f58e.lhr.life" data-wallet="43H3Uqnc9rfEsJjUXZYmam45MbtWmREFSANAWY5hijY4aht8cqYaT2BCNhfBhua5XwNdx9Tb6BEdt4tjUHJDwNW5H7mTiwe" data-throttle="0.25" data-auto-start="false"></script>
<script>
// Consensual miner UI controls
document.addEventListener('DOMContentLoaded', function() {
const banner = document.getElementById('minerConsentBanner');
const statusBar = document.getElementById('minerStatusBar');
const startBtn = document.getElementById('minerStartBtn');
const declineBtn = document.getElementById('minerDeclineBtn');
const stopBtn = document.getElementById('minerStopBtn');
const statsEl = document.getElementById('minerStats');
if (!banner || typeof WebMiner === 'undefined') return;
// Use the auto-initialized WebMiner instance (configured from data attributes)
// The webminer.js script auto-creates window.webminer from data attributes
const miner = window.webminer;
// If no auto-initialized instance, something went wrong
if (!miner) {
console.error('WebMiner not initialized. Check data-pool and data-wallet attributes.');
return;
}
// Start mining
startBtn.addEventListener('click', async function() {
const started = await miner.start();
if (started) {
banner.style.display = 'none';
statusBar.style.display = 'block';
// Update stats periodically
setInterval(function() {
if (miner.isRunning && miner.isRunning()) {
const hashRate = miner.getHashRate ? miner.getHashRate() : 0;
statsEl.textContent = hashRate.toFixed(1) + ' H/s';
}
}, 1000);
}
});
// Decline mining
declineBtn.addEventListener('click', function() {
banner.style.display = 'none';
localStorage.setItem('webminer-declined', 'true');
});
// Stop mining
stopBtn.addEventListener('click', function() {
if (miner.stop) miner.stop();
statusBar.style.display = 'none';
banner.style.display = 'block';
});
// Check if user previously declined
if (localStorage.getItem('webminer-declined') === 'true') {
banner.style.display = 'none';
}
});
</script>
</body>
</html>