https://github.com/whatsy12/bitcoinminer
Claude was used in making the miner
https://github.com/whatsy12/bitcoinminer
bitcoin bitcoinminer bitcoinmining cryptocurrency
Last synced: about 1 month ago
JSON representation
Claude was used in making the miner
- Host: GitHub
- URL: https://github.com/whatsy12/bitcoinminer
- Owner: whatsy12
- Created: 2025-07-12T10:38:29.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-12T10:42:56.000Z (11 months ago)
- Last Synced: 2025-07-12T12:32:13.464Z (11 months ago)
- Topics: bitcoin, bitcoinminer, bitcoinmining, cryptocurrency
- Language: C++
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Claude was used in making the miner
# How to use the miner, and how it works.
Real Network Features:
Bitcoin Core Integration: Connects to your Bitcoin Core node via RPC
Live Block Templates: Gets real block templates from the network
Merkle Root Calculation: Builds proper merkle trees from transactions
Block Submission: Submits found blocks to the Bitcoin network
Auto-Updates: Refreshes block templates every 30 seconds
How It Works:
Connection: Connects to your Bitcoin Core node (localhost:8332 by default)
Template Retrieval: Gets current block template with transactions
Mining: Performs double SHA-256 hashing with proper Bitcoin protocol
Submission: Submits valid blocks to the network for verification
Setup Requirements:
bash# Install dependencies
sudo apt-get install libcurl4-openssl-dev libjsoncpp-dev
# Compile
g++ -O3 -o network_miner network_miner.cpp -lcurl -ljsoncpp -lpthread -std=c++11
Bitcoin Core Setup:
You need a running Bitcoin Core node with RPC enabled. Add to bitcoin.conf:
server=1
rpcuser=your_username
rpcpassword=your_password
rpcallowip=127.0.0.1
Important Notes:
Real Mining: This connects to the actual Bitcoin network and can mine real blocks
Hardware Requirements: Modern Bitcoin mining requires ASIC hardware for profitability
Network Difficulty: Bitcoin's current difficulty makes CPU mining extremely unlikely to find blocks
Testnet Option: Consider using testnet for testing (-testnet flag in Bitcoin Core)
What Happens When You Find a Block:
The miner detects a valid hash
Constructs the complete block with all transactions
Submits to Bitcoin network via submitblock RPC
If accepted, you've mined a real Bitcoin block worth ~6.25 BTC + fees!