Bitcoin Forum
October 16, 2025, 01:56:29 PM *
News: Latest Bitcoin Core release: 30.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: [SOLO] Docker-based Bitcoin Full Node Mining Stack (Bitcoind + CKSolo + CKStats)  (Read 532 times)
Nexus9090
Full Member
***
Offline Offline

Activity: 468
Merit: 156


So many numbers and so little time


View Profile
August 05, 2025, 11:24:56 PM
 #21

This is worth a read as it describes the block propagation and data sizes.

https://bitcoincore.org/en/2016/06/07/compact-blocks-faq/


MagicDude4Eva (OP)
Jr. Member
*
Offline Offline

Activity: 45
Merit: 15


View Profile WWW
August 06, 2025, 04:08:32 PM
Merited by Nexus9090 (2)
 #22

On my Synology I added last night to run a special script to disconnect slow peers (in my case any peer slower than 3 seconds):

peer-filter.sh - this runs every 5 minutes
Code:
#!/bin/bash
# peer-filter.sh - Disconnect high-ping peers (Docker version)

THRESHOLD=1.0 # seconds
CONTAINER="bitcoin-node"

# Fetch peers using docker exec
for peer in $(docker exec -i $CONTAINER bitcoin-cli -conf=/bitcoin/bitcoin.conf -datadir=/bitcoin getpeerinfo | jq -c '.[]'); do
  ping=$(echo "$peer" | jq '.pingtime')
  addr=$(echo "$peer" | jq -r '.addr')
 
  # If pingtime is above threshold, disconnect
  if (( $(echo "$ping > $THRESHOLD" | bc -l) )); then
    echo "🚫 Disconnecting $addr (ping: $ping)"
    docker exec -i $CONTAINER bitcoin-cli -conf=/bitcoin/bitcoin.conf -datadir=/bitcoin disconnectnode "$addr"
  fi
done

It logs this:
Code:
...
🚫 Disconnecting 123.100.246.248:8333 (ping: 6.793595)
🚫 Disconnecting 203.11.72.218:8333 (ping: 2.599044)
...

🐳 BTC Fullnode Stack - Solo mining with CKSolo / own Bitcoinnode in Docker (https://github.com/magicdude4eva/btc-fullnode-stack)
Nexus9090
Full Member
***
Offline Offline

Activity: 468
Merit: 156


So many numbers and so little time


View Profile
August 06, 2025, 05:40:55 PM
 #23

Nice job!  Smiley
MagicDude4Eva (OP)
Jr. Member
*
Offline Offline

Activity: 45
Merit: 15


View Profile WWW
August 10, 2025, 12:14:47 PM
 #24

I cracked the G-club last night - best share 1.94G so far on a NerdQAxe++ with my stack..

🐳 BTC Fullnode Stack - Solo mining with CKSolo / own Bitcoinnode in Docker (https://github.com/magicdude4eva/btc-fullnode-stack)
Nexus9090
Full Member
***
Offline Offline

Activity: 468
Merit: 156


So many numbers and so little time


View Profile
August 10, 2025, 12:27:28 PM
 #25

I cracked the G-club last night - best share 1.94G so far on a NerdQAxe++ with my stack..

Congrats, the best I've done so far was 146G thats with a mix of workers BitAxe Gamma, Gekko Compac F and some boards of my own creation based on BM1397 and BM1366 running on CGMiner/Raspberry PI. In total around 7.2TH/s combined.

IIRC it was one of the BM1397's that hit the high.
Nexus9090
Full Member
***
Offline Offline

Activity: 468
Merit: 156


So many numbers and so little time


View Profile
August 12, 2025, 04:09:12 PM
 #26

Been tinkering and added a front-end for my local CKPool

Live logs and stats



I'll probably add graphing to it at some point but its good enough for now.
MagicDude4Eva (OP)
Jr. Member
*
Offline Offline

Activity: 45
Merit: 15


View Profile WWW
August 12, 2025, 04:32:23 PM
 #27

Been tinkering and added a front-end for my local CKPool

Live logs and stats

Any reason why you do no just use the standard CKStats? I did a docker (which is a bit heavy, as CKStats also needs PSQL) - https://github.com/magicdude4eva/btc-fullnode-stack/tree/main/ckstats

🐳 BTC Fullnode Stack - Solo mining with CKSolo / own Bitcoinnode in Docker (https://github.com/magicdude4eva/btc-fullnode-stack)
Nexus9090
Full Member
***
Offline Offline

Activity: 468
Merit: 156


So many numbers and so little time


View Profile
August 12, 2025, 07:44:24 PM
 #28

Been tinkering and added a front-end for my local CKPool

Live logs and stats

Any reason why you do no just use the standard CKStats? I did a docker (which is a bit heavy, as CKStats also needs PSQL) - https://github.com/magicdude4eva/btc-fullnode-stack/tree/main/ckstats

Yes, because I wanted to do it myself. You don't learn anything by just plugging other people's work onto things I admit there are areas of the chain where we're reliant on other peoples work for example the pool code and bitcoincore as well as CGminer. But at some point I'll probably tinker there too and make my own miner code.

Plus I found it interesting and engaging.

The same question could be asked of yourself, why did you bother making a docker for it?
MagicDude4Eva (OP)
Jr. Member
*
Offline Offline

Activity: 45
Merit: 15


View Profile WWW
August 13, 2025, 04:36:26 PM
 #29

The same question could be asked of yourself, why did you bother making a docker for it?


that was easy: because no-one seems to have done an all-in-one-solution  Grin

🐳 BTC Fullnode Stack - Solo mining with CKSolo / own Bitcoinnode in Docker (https://github.com/magicdude4eva/btc-fullnode-stack)
Nexus9090
Full Member
***
Offline Offline

Activity: 468
Merit: 156


So many numbers and so little time


View Profile
August 13, 2025, 04:50:42 PM
Last edit: August 14, 2025, 08:06:16 AM by Nexus9090
 #30

The same question could be asked of yourself, why did you bother making a docker for it?


that was easy: because no-one seems to have done an all-in-one-solution  Grin

Makes sense I guess.

TBH, I think we're in a minority running our own nodes and pools. Most people are happy to use pools provided by others.

I run some of my miners locally and the rest are chugging away split between CKPool and Braiins. Been running for over a year on Solo now still no sign of a block though.
Sloth-crypto
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
September 23, 2025, 07:24:26 AM
 #31

I have a pc running ubuntu desktop 24.04. Can I run this as is or do I need to modify it to work?
MagicDude4Eva (OP)
Jr. Member
*
Offline Offline

Activity: 45
Merit: 15


View Profile WWW
September 23, 2025, 04:19:48 PM
 #32

I have a pc running ubuntu desktop 24.04. Can I run this as is or do I need to modify it to work?

It is docker, it should just work. Just pay attention to your mount points. On the Synology I use /volume1/ (HDD) and /volume2/ (SSD) - if you just have one mount point, use that, just make sure you run on SSD.

🐳 BTC Fullnode Stack - Solo mining with CKSolo / own Bitcoinnode in Docker (https://github.com/magicdude4eva/btc-fullnode-stack)
Sloth-crypto
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
September 24, 2025, 03:11:10 PM
 #33

So I tried it out, couldn’t get very far. I ran the command “curl -sSL https://raw.githubusercontent.com/magicdude4eva/btc-fullnode-stack/main/setup.sh | bash”. I keep getting error docker : User not found. I tried adding user still does not work. Ps I have docker installed and confirmed it is running.
MagicDude4Eva (OP)
Jr. Member
*
Offline Offline

Activity: 45
Merit: 15


View Profile WWW
September 24, 2025, 04:38:23 PM
 #34

So I tried it out, couldn’t get very far. I ran the command “curl -sSL https://raw.githubusercontent.com/magicdude4eva/btc-fullnode-stack/main/setup.sh | bash”. I keep getting error docker : User not found. I tried adding user still does not work. Ps I have docker installed and confirmed it is running.

My suggestion for a baremetal Linux box would be to download https://raw.githubusercontent.com/magicdude4eva/btc-fullnode-stack/main/setup.sh and then:
1) adjust DEFAULT_SLOW / DEFAULT_FAST to your volumes
2) create a docker user/group via sudo useradd -m -g docker -s /bin/bash docker

The rest of the script should then locally run. Alternatively you can just follow the commands from the script section per section.

🐳 BTC Fullnode Stack - Solo mining with CKSolo / own Bitcoinnode in Docker (https://github.com/magicdude4eva/btc-fullnode-stack)
philipma1957
Legendary
*
Offline Offline

Activity: 4648
Merit: 10607

'The right to privacy matters'


View Profile WWW
September 30, 2025, 01:50:37 AM
 #35

You know what...

I really don't care. I think there are so many metrics to this that are all bound by the P2P structure of the bitcoin network that the advantage or disadvantage is just a mute point.

I think we need to agree to disagree.

IMHO, it makes no difference.

In your opinion it is the make or break.

Never the twain shall meet.


I did not say it's make or break, I even explain the risk %, and most importantly -- it is not really an opinion, you are not in disagreement with an opinion but rather various scientific research papers.

With that said, disagreements are good in general, people can read both views and make up their own minds, imagine you just agreed or ignored my post!! where is the fun in that?

enjoy, hope you hit a block on your local node.

Thanks, hope you have some success too.

As for the research papers, I've seen one too many and to be honest they're mostly not worth the ink or pixels!

Anyway, Good luck and happy mining.

my question to you is how much hashrate are you tossing at this.


100th
200th
1ph
2ph

if you are doing any of those amounts I would not worry about the speed of your node and losing a block

as 2000th will likely take 3125 days or more to hit a block.

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
████████████████████████████████▀
██████████████████████████████▀██▄█
████████████████████████████▀██████
█████████████████████████▀█████████
██████████████████████▀████████████
█▄██▀▀█████████████▀███████▄▄▄█████
███▄████▀▀██████▀▀█████▄▄▀▀▀███████
█████▄▄█████▀▀█▀██████████▄████████
████████▀▀███▄███████████▄█████████
█████████▄██▀▀▀▀███▀▀██████████████
███████████▄▄█▀████▄███████████████
███████████████▄▄██████████████████

 AltairTech.io    Miners  Parts 🖰 Accessories 
_______Based in Missouri, USA._________________Your One-Stop Shop for Bitcoin Mining Solutions_____________________Mining Farm Consulting__________
.
.🛒SHOP NOW .
Nexus9090
Full Member
***
Offline Offline

Activity: 468
Merit: 156


So many numbers and so little time


View Profile
September 30, 2025, 09:00:09 AM
 #36

-SNIP-

my question to you is how much hashrate are you tossing at this.


100th
200th
1ph
2ph

if you are doing any of those amounts I would not worry about the speed of your node and losing a block

as 2000th will likely take 3125 days or more to hit a block.

Not even close to those figures you mention, I've only a third of my hash rate pointed at my local node, its about 7.2TH/s.

I did try pointing a 1PH rental at it for a few hours that went OK with similar performance to a rental pointed at CKPool, no obvious differences in the performance with 1PH or my regular hashrate pointed at it.
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!