Post
Topic
Board Development & Technical Discussion
Merits 3 from 1 user
Re: [Guide] Solo mine testnet bitcoins with cgminer, Bitcoin Core, and a Compac F
by
Demontager
on 02/11/2024, 22:13:13 UTC
⭐ Merited by ABCbits (3)
Quote
At a glance, your config seems to be right. Have you tried checking debug.log file created by Bitcoin Core? It may give some hints why public-pool unable connect to Bitcoin Core.
I'm back, had some home issues.
So, i found issue in my .env config file, BITCOIN_RPC_URL was defined in wrong way. I've added port number to it, but it should be ommited.
instead
BITCOIN_RPC_URL=http://192.168.1.181:5000
should be
BITCOIN_RPC_URL=http://192.168.1.181

And pool log now says it connected to bitcoind.
Code:
[Nest] 6983  - 11/02/2024, 11:23:17 PM     LOG [RouterExplorer] Mapped {/api/client/:address/:workerName/:sessionId, GET} route +1ms
[Nest] 6983  - 11/02/2024, 11:23:17 PM     LOG [RoutesResolver] AddressController {/api/address}: +0ms
[Nest] 6983  - 11/02/2024, 11:23:17 PM     LOG [RouterExplorer] Mapped {/api/address/settings, PATCH} route +1ms
[Nest] 6983  - 11/02/2024, 11:23:17 PM     LOG [NestApplication] Nest application successfully started +20ms
API listening on http://0.0.0.0:3334
Bitcoin RPC connected
block height change
Stratum server is listening on port 3333



Then i have configured Antminer S9 pool config as
pool: stratum+tcp://192.168.1.15:3333
Worker: testnet_btc_address
password: x

Miner status page showing that pool alive and it accepts blocks, but public pool log shows that antminer connects and disconnects.
Code:
getblocktemplate tx count: 3519
new block
getblocktemplate tx count: 3522
getblocktemplate tx count: 3525
getblocktemplate tx count: 3525
Killing dead clients
getblocktemplate tx count: 3527
Client d7cddb19 disconnected, hadError?:false
block height change
block height change
block height change
New client ID: : ae04772d, ::ffff:192.168.1.170:43403
getblocktemplate tx count: 3520
getblocktemplate tx count: 3522
getblocktemplate tx count: 3523
Killing dead clients
getblocktemplate tx count: 3525
getblocktemplate tx count: 3525
getblocktemplate tx count: 3526
Client ae04772d disconnected, hadError?:false
New client ID: : 5dffbf71, ::ffff:192.168.1.170:43643
getblocktemplate tx count: 3527
getblocktemplate tx count: 3529
Killing dead clients
getblocktemplate tx count: 3530
getblocktemplate tx count: 3530
getblocktemplate tx count: 3533
getblocktemplate tx count: 3535
Client 5dffbf71 disconnected, hadError?:false
Killing dead clients
New client ID: : 822fc25b, ::ffff:192.168.1.170:43965
getblocktemplate tx count: 3536


I guess it some problem with public pool config again. Previously i tested this Antminer S9 on real btc pool (antpool) and it was working fine without disconnects.