Earlier i forget to mention you could connect S9 directly to Bitcoin Core since GBT protocol is very outdated. You may want to try that since you've failed to run public-pool.
I was able to run public pool after i match node and npm version used in docker container, but got "Error getmininginfo 404 - undefined
" error. Probably it's some issue with my configs.
bitcoin_testnet.conf
testnet=1
txindex=1
server=1
[test]
rpcport=5000
rpcallowip=192.168.1.0/24
rpcuser=dem
rpcpassword=mypassword
rpcbind=0.0.0.0
.env
# bitcoin node running in your private network 192.168.1.0/24
BITCOIN_RPC_URL=http://192.168.1.181:5000
# bitcoin node running undockered on the same PC
# needs to add rpcallowip=172.16.0.0/12 to your bitcoin.conf
#BITCOIN_RPC_URL=http://host.docker.internal
BITCOIN_RPC_USER=dem
BITCOIN_RPC_PASSWORD=mypassword
BITCOIN_RPC_PORT=5000
BITCOIN_RPC_TIMEOUT=10000
# You can use this instead of BITCOIN_RPC_USER and BITCOIN_RPC_PASSWORD
BITCOIN_RPC_COOKIEFILE=
# Enable in bitcoin.conf with
# zmqpubrawblock=tcp://*:3000
# BITCOIN_ZMQ_HOST="tcp://192.168.1.100:3000"
API_PORT=3334
STRATUM_PORT=3333
#optional telegram bot
#TELEGRAM_BOT_TOKEN=
#optional discord bot
#DISCORD_BOT_CLIENTID=
#DISCORD_BOT_GUILD_ID=
#DISCORD_BOT_CHANNEL_ID=
#optional
DEV_FEE_ADDRESS=
# mainnet | testnet
NETWORK=testnet
API_SECURE=false
# Default is "public-pool", you can change it to any string it will be removed if it will make the block or coinbase script too big
POOL_IDENTIFIER="public-pool"
And actual error after starting public pool
$ npm run start
> [email protected] start
> nest start
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [NestFactory] Starting Nest application...
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +117ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [InstanceLoader] HttpModule dependencies initialized +1ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [InstanceLoader] CacheModule dependencies initialized +0ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [InstanceLoader] ConfigHostModule dependencies initialized +0ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [InstanceLoader] ConfigModule dependencies initialized +1ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [InstanceLoader] ScheduleModule dependencies initialized +1ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [InstanceLoader] TypeOrmCoreModule dependencies initialized +37ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [InstanceLoader] ClientStatisticsModule dependencies initialized +1ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [InstanceLoader] ClientModule dependencies initialized +0ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [InstanceLoader] AddressSettingsModule dependencies initialized +0ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [InstanceLoader] TelegramSubscriptionsModule dependencies initialized +0ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [InstanceLoader] BlocksModule dependencies initialized +0ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [InstanceLoader] RpcBlocksModule dependencies initialized +0ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [InstanceLoader] AppModule dependencies initialized +4ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [RoutesResolver] AppController {/api}: +32ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [RouterExplorer] Mapped {/api/info, GET} route +5ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [RouterExplorer] Mapped {/api/pool, GET} route +1ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [RouterExplorer] Mapped {/api/network, GET} route +1ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [RouterExplorer] Mapped {/api/info/chart, GET} route +1ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [RoutesResolver] ClientController {/api/client}: +0ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [RouterExplorer] Mapped {/api/client/:address, GET} route +1ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [RouterExplorer] Mapped {/api/client/:address/chart, GET} route +1ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [RouterExplorer] Mapped {/api/client/:address/:workerName, GET} route +1ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [RouterExplorer] Mapped {/api/client/:address/:workerName/:sessionId, GET} route +1ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [RoutesResolver] AddressController {/api/address}: +0ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [RouterExplorer] Mapped {/api/address/settings, PATCH} route +1ms
[Nest] 13117 - 10/22/2024, 10:43:11 PM LOG [NestApplication] Nest application successfully started +24ms
API listening on http://0.0.0.0:3334
Could not reach RPC host
Error getmininginfo 404 - undefined
Error getmininginfo 404 - undefined
Error getmininginfo 404 - undefined
Error getmininginfo 404 - undefined
Error getmininginfo 404 - undefined
Error getmininginfo 404 - undefined
Error getmininginfo 404 - undefined
Error getmininginfo 404 - undefined
Error getmininginfo 404 - undefined
Error getmininginfo 404 - undefined
Error getmininginfo 404 - undefined
Error getmininginfo 404 - undefined
Error getmininginfo 404 - undefined
Error getmininginfo 404 - undefined
Error getmininginfo 404 - undefined
Error getmininginfo 404 - undefined
Error getmininginfo 404 - undefined
Error getmininginfo 404 - undefined
Error getmininginfo 404 - undefined
Stratum server is listening on port 3333
Error getmininginfo 404 - undefined
2. Ignore step 2 of tutorial on this thread. You need to configure your S9 connect to your Bitcoin Core directly using RPC url, user and password (which use GBT protocol) or your own mining pool (which use stratum protocol).
I can't get how to set bitcoin testnet address and rpc username and password in asic config.
I tried to set as:
URL:
http://dem:[email protected]:5000Worker: bitcoin_testnet_address
Password: x
but it does not work, miner reports Dead pool