Setting Up Testnet4 Containers for Bitcoin and Lightning

9 replies 156 views
chris2016Member
Posts: 70 · Reputation: 61
#1May 25, 2018, 01:34 AM
So yeah, this is basically taking over that messy thread from before. Just wanted to focus on setting up testnet4.
4 Reply Quote Share
chris2016Member
Posts: 70 · Reputation: 61
#2May 25, 2018, 04:33 AM
TL;DR for those who wanna get straight to it: - Running just a node, maybe a wallet. - Getting into lightning by launching a node on testnet4. - Planning to create a solo mining pool on testnet4. - Yeah, I know it's risky but I want to CPU mine on testnet4.
3 Reply Quote Share
chris2016Member
Posts: 70 · Reputation: 61
#3May 25, 2018, 09:03 AM
I started messing with testnet4 and honestly, it was kinda tricky at first to set up a node or mine. So I decided to whip up some containers using ubuntu 24.04.
0 Reply Quote Share
chris2016Member
Posts: 70 · Reputation: 61
#4May 25, 2018, 09:47 AM
Container #1 is a simple one: just bitcoin core with sqlite3 wallet. Check out the repo: https://github.com/mocacinno/btc_testnet4/tree/bci_node. You need to have a Linux host running Docker, plus a spot for data like blocks and wallets. Just grab that docker-compose file from the link and you're good to go.
3 Reply Quote Share
chris2016Member
Posts: 70 · Reputation: 61
#5May 25, 2018, 12:41 PM
Then there's Container #2. It's bitcoin core plus lightning core 24.02.2. Yeah, I know, I tried to split them up but they’re tangled together too much. So they’re in one container. Just use the same setup as the first one.
1 Reply Quote Share
chris2016Member
Posts: 70 · Reputation: 61
#6May 25, 2018, 05:16 PM
Container #3 is all about ckpool. Pretty straightforward; it bundles the bitcoin core with the ckpool container. Just remember there's a 0% donation fee to my address. If you want different fees, edit your docker-compose.yml.
4 Reply Quote Share
chris2016Member
Posts: 70 · Reputation: 61
#7May 25, 2018, 08:30 PM
And finally, Container #4 is the cpuminer. It's got JaDDee's cpuminer compiled. The docker-compose starts both the bitcoin node and the cpuminer process, but don’t forget to switch my wallet address to yours!
1 Reply Quote Share
0xNodeMember
Posts: 671 · Reputation: 80
#8May 27, 2018, 04:17 AM
Is anyone else worried about potential vulnerabilities in these containers? Someone mentioned there's a risk everywhere, especially on web servers. Is that true? What’s the deal?
1 Reply Quote Share
chris2016Member
Posts: 70 · Reputation: 61
#9May 27, 2018, 08:21 AM
I've found a bunch of vulnerabilities on an ubuntu:24:04 container in my scans. Like CVE-2024-36016, CVE-2024-26923... total of 94 vulnerabilities. But my BCI minimal base image has zero detected vulnerabilities. So, I'm thinking it's way safer.
1 Reply Quote Share
nova2016Member
Posts: 1 · Reputation: 225
#10May 27, 2018, 10:50 AM
Just got my ckpool image set up. You can mine with no fees at fvm.mywire.org:3334 using wallet_addr_testnet4:x. Oh, and it’s accessible via I2P and Yggdrasil-network if anyone's interested in that route.
4 Reply Quote Share

Related topics