Solo Mining with Python and Bitcoin Core

20 replies 401 views
gwei_chadNewbie
Posts: 1 · Reputation: 30
#1Jan 18, 2022, 09:33 PM
Just set up Bitcoin Core on my laptop and got it synced. Also whipped up a Python script to do solo mining through RPC.
8 Reply Quote Share
Posts: 224 · Reputation: 87
#2Jan 19, 2022, 01:50 AM
Don't forget to use code tags next time. I'll check your code later, but seriously, learn the bbcode.
4 Reply Quote Share
dave.forkMember
Posts: 375 · Reputation: 185
#3Jan 19, 2022, 08:06 AM
Why not just skip Python altogether? If you just wanna test your mining setup, try using testnet4. Your program looks fine theoretically, but there are better options out there like CKpool.
5 Reply Quote Share
Posts: 224 · Reputation: 87
#4Jan 19, 2022, 12:31 PM
But doesn't that need an ASIC? Can it work with smaller devices, like Mars Lander or Gekkoscience R909?
3 Reply Quote Share
dave.forkMember
Posts: 375 · Reputation: 185
#5Jan 19, 2022, 05:58 PM
You can even mine with a CPU. Check out cpuminer-opt for that.
0 Reply Quote Share
Posts: 224 · Reputation: 87
#6Jan 19, 2022, 10:29 PM
Gonna give it a shot for fun! Do you know many people who actually solo mine? I don't know anyone and I'm curious.
3 Reply Quote Share
planktonHero Member
Posts: 1284 · Reputation: 2049
#7Jan 22, 2022, 01:29 AM
You should really check point 3 in that guide... Solo mining is a long shot. Even with top-tier gear, your chances are super slim. I solo mine at Kano.is with 150 THs and still haven't hit a block in 3 years.
2 Reply Quote Share
oracle07Newbie
Posts: 22 · Reputation: 24
#8Jan 22, 2022, 07:49 AM
So you're saying it just won't work? I mean, I guess I can get the program to run, but no one's really gonna use it if solo mining doesn't pay off.
0 Reply Quote Share
Posts: 224 · Reputation: 87
#9Jan 22, 2022, 09:44 AM
Can I ask what equipment you're using?
3 Reply Quote Share
planktonHero Member
Posts: 1284 · Reputation: 2049
#10Jan 23, 2022, 06:13 AM
I’m mostly on Canaan Avalons: A1246 and A1047, plus a couple of older rigs. Found 10 blocks so far, but all from PPLNS on a pool.
4 Reply Quote Share
dave.forkMember
Posts: 375 · Reputation: 185
#11Jan 23, 2022, 09:25 AM
Yeah, it's kinda like a lottery. Depending on your setup, it might be more profitable to play the lottery than to solo mine for years. The math is wild... with 150 TH/s, the odds are crazy low.
3 Reply Quote Share
chad69Newbie
Posts: 26 · Reputation: 33
#12Jan 24, 2022, 11:37 AM
Does this program support SHA x86 extensions? Like, do modern CPUs have dedicated SHA-256 ASICs or is it just software emulation?
2 Reply Quote Share
dave.forkMember
Posts: 375 · Reputation: 185
#13Jan 24, 2022, 11:49 AM
I saw it does support Intel Rocket Lake. They don't have full ASICs, but better than just regular CPU instructions. I get about 50 MH/s, which means almost no chance of finding a block for ages.
4 Reply Quote Share
Posts: 48 · Reputation: 170
#14Jan 24, 2022, 02:06 PM
Great project idea! You might wanna try testnet instead of the mainnet to actually see if your code works.
4 Reply Quote Share
gang2015Member
Posts: 682 · Reputation: 62
#15Jan 24, 2022, 03:42 PM
I wrote a couple of guides on solo mining in testnet. Check them out for some practical examples.
2 Reply Quote Share
chad69Newbie
Posts: 26 · Reputation: 33
#16Jan 24, 2022, 09:13 PM
Not sure about OP, but I've noticed they don’t respond to comments here but are creating new threads.
1 Reply Quote Share
gang2015Member
Posts: 682 · Reputation: 62
#17Jan 24, 2022, 11:09 PM
I ran an SHA-1 benchmark and my GPU is way faster than my CPU. Does anyone know of modern miners for SHA-256?
0 Reply Quote Share
chad69Newbie
Posts: 26 · Reputation: 33
#18Jan 25, 2022, 04:22 AM
You could use hashcat for benchmarking. Sadly, no updated Bitcoin mining software that supports CPU or GPU.
4 Reply Quote Share
chad69Newbie
Posts: 26 · Reputation: 33
#19Jan 25, 2022, 07:46 AM
Found this one that works with nVidia: check out ccminer. It's not perfect, but it runs.
4 Reply Quote Share
oracle07Newbie
Posts: 22 · Reputation: 24
#20Jan 25, 2022, 09:04 AM
ccminer isn't the fastest though, it's pretty slow compared to other benchmarks I've seen.
5 Reply Quote Share

Related topics