Pages:
Author

Topic: Mining against bitcoind stratum issues - page 2. (Read 492 times)

jr. member
Activity: 33
Merit: 8
March 26, 2021, 08:21:45 PM
#6
Don't specify --stratum-port. Do not specify that the mining software should be using the stratum protocol. If anything, try to see if you can specify that it should use getblocktemplate (frequently shortened as gbt).

The version of bitcoind doesn't really matter. Bitcoind never supported stratum so stop trying to use stratum with it.

On the bitcoind server, I ran it again without the --stratum-port
slightly different error
[2021-03-27 01:17:09] Pool 0 slow/down or URL or credentials invalid
 [2021-03-27 01:17:09] No servers were found that could be used to get work from
.
 [2021-03-27 01:17:09] Please check the details from the list below of the serve
rs you have input
 [2021-03-27 01:17:09] Most likely you have input the wrong URL, forgotten to ad
d a port, or have not set up workers
 [2021-03-27 01:17:09] Pool: 0  URL: http://127.0.0.1:8332  User: tom  Pass
word: secret
 [2021-03-27 01:17:09] Press any key to exit, or BFGMiner will try again in 15s

I am not sure how to specify gbt but ran across this on luke-jr github site-

Code:
SOLO MINING

BFGMiner supports solo mining with any GBT-compatible bitcoin node (such as
bitcoind). To use this mode, you need to specify the URL of your bitcoind node
using the usual pool options (--url, --userpass, etc), and the --generate-to
option to specify the Bitcoin address you wish to receive the block rewards
mined. When you run Bitcoin Core on the same computer as your miner, the pool
itself will be automatically configured for you (on the default goal). Please be
aware that solo mining via GBT is at this time only supported for Bitcoin.

IMPORTANT: If you are solo mining with more than one instance of BFGMiner (or
any other software) per payout address, you must also specify data using the
--coinbase-sig option to ensure each miner is working on unique work. Note
that this data will be publicly seen if your miner finds a block using any
GBT-enabled pool, even when not solo mining (such as failover).

If your bitcoin node does not support longpolling (for example, bitcoind 0.8.x),
you should consider setting up a failover pool to provide you with block
notifications. Note that solo mining does not use shares, so BFGMiner's adjusted
hashrate (third column) may suddenly drop to zero if a block you submit is
rejected; this does not indicate that it has stopped mining.

Example solo mining usage:

bfgminer -o http://localhost:8332 -u username -p password \
    --generate-to 1QATWksNFGeUJCWBrN4g6hGM178Lovm7Wh \
    --coinbase-sig "rig1: This is Joe's block!"

If you want to solo mine on multiple GBT-compatible Bitcoin blockchains, you can
specify --generate-to multiple times with a goal name prefix followed by a
colon. Note that at this time, the coinbase sig is always shared across all
goals/pools.

Example multi-blockchain solo mining usage:

bfgminer -o http://localhost:8332 -u username -p password \
    --generate-to 1QATWksNFGeUJCWBrN4g6hGM178Lovm7Wh \
    -o http://localhost:7221 -u user2 -p password --pool-goal mychain \
    --generate-to mychain:1QATWksNFGeUJCWBrN4g6hGM178Lovm7Wh \
    --coinbase-sig "rig1: This is Joe's block!"

I tried the --generate-to switch but still get the same errors regarding can't find the pool.
staff
Activity: 3458
Merit: 6793
Just writing some code
March 26, 2021, 07:48:37 PM
#5
Don't specify --stratum-port. Do not specify that the mining software should be using the stratum protocol. If anything, try to see if you can specify that it should use getblocktemplate (frequently shortened as gbt).

The version of bitcoind doesn't really matter. Bitcoind never supported stratum so stop trying to use stratum with it.
jr. member
Activity: 33
Merit: 8
March 26, 2021, 07:40:43 PM
#4
bitcoind is not a stratum server, so the stratum protocol will not work with it. The only mining protocol that bitcoind supports is getblocktemplate. If you change the url from stratum+tcp to http, your mining software should automatically try getblocktemplate and that should work.

hmm didn't seem to work.

On the bitcoind server I changed

./bfgminer -o stratum+tcp://127.0.0.1:8332 --stratum-port=3333 -u tom -p secret

-to-

./bfgminer -o http://127.0.0.1:8332 --stratum-port=3333 -u tom -p secret

but received a similar error.

For cgminer, similar error as well.

./cgminer -o stratum+tcp://192.168.0.179:3333 -u tom -p secret --btc-address 1E1pz9GoUVEvEEoLHm4VDXEph13yZBbXGX
and directly
./cgminer -o http://192.168.0.179:8332 -u tom -p secret --btc-address 1E1pz9GoUVEvEEoLHm4VDXEph13yZBbXGX

Maybe its a version of bitcoind that is older than 0.21.0 that this works?

staff
Activity: 3458
Merit: 6793
Just writing some code
March 26, 2021, 05:25:34 PM
#3
bitcoind is not a stratum server, so the stratum protocol will not work with it. The only mining protocol that bitcoind supports is getblocktemplate. If you change the url from stratum+tcp to http, your mining software should automatically try getblocktemplate and that should work.
legendary
Activity: 3472
Merit: 3217
Playbet.io - Crypto Casino and Sportsbook
March 26, 2021, 03:47:10 PM
#2
I don't know exactly how to mine solo in full node I tried that before but no success.

Can you try to run your own pool instead?
You can follow the guide from this thread below.
- https://bitcointalksearch.org/topic/dont-pay-ultimate-crypto-server-installer-script-setup-your-pool-in-minutes-4980079

You can also use this video below as your guide and reference

- https://www.youtube.com/watch?v=MKb9YKIAltE
- https://www.youtube.com/watch?v=qE0rhfJ1g2k

Once you setup add a coin like Bitcoin pointing to your own full node.

Or follow Xavatar to automate the setup from here https://www.xavatar.com/tuto-installing-crypto-mining-pool-yiimp-on-ubuntu/
Just use translator to read it.
jr. member
Activity: 33
Merit: 8
March 26, 2021, 02:06:57 PM
#1
Trying to be my own bitcoin mining pool for fun and lotto.  I realize the odds and the need for asics.

I have installed bitcoind to ubuntu linux server and sync'd the block chain current.  I then proceeded to create a wallet and an address.

Tried to mine with cgminer from another computer on the same lan but received the following error-

Code:
root@server1:/usr/src/cgminer# ./cgminer -o stratum+tcp://192.168.0.179:8332 -u tom -p secret --btc-address 1E1pz9GoUVEvEEoLHm4VDXEph13yZBbXGX
 [1970-01-03 18:55:33.904] Started cgminer 4.11.1
 [1970-01-03 18:55:33.904] Probing for an alive pool
 [1970-01-03 18:56:33.914] No servers were found that could be used to get work from.
 [1970-01-03 18:56:33.914] Please check the details from the list below of the servers you have input
 [1970-01-03 18:56:33.914] Most likely you have input the wrong URL, forgotten to add a port, or have not set up workers
 [1970-01-03 18:56:33.914] Pool: 0  URL: stratum+tcp://192.168.0.179:8332  User: tom  Password: secret
 [1970-01-03 18:56:33.914] No servers could be used! Exiting.

192.168.0.179 is the ip of the bitcoind server.
I start bitcoind with this ./bin/bitcoind -daemon
Here is what my bitcoin.conf looks like, I have verified it is being read with the debug.log file.

Code:
server=1
rpcuser=tom
rpcpassword=secret
rpcallowip=192.168.0.0/24
rpcport=8332

I started googling and there was very little information to be found other than the following-

1.) In the recent past, this kind of support was removed from bitcoind
2.) People made it work by installing bfgminer on the same server as bitcoind to act as a proxy.

I tried #2.

Code:
./bfgminer --stratum-port=3333

Pool setup failed

Added a little more

Code:
./bfgminer -o stratum+tcp://127.0.0.1:8332 --stratum-port=3333 -u tom -p secret


[2021-03-26 18:59:07] Most likely you have input the wrong URL, forgotten to ad
d a port, or have not set up workers
 [2021-03-26 18:59:07] Pool: 0  URL: stratum+tcp://127.0.0.1:8332  User: tom  Password: secret
 [2021-03-26 18:59:07] Press any key to exit, or BFGMiner will try again in 15s.

 [2021-03-26 18:59:23] No servers were found that could be used to get work from
.
 [2021-03-26 18:59:23] Please check the details from the list below of the serve
rs you have input


Can anyone help me out to fix this?  Or maybe I am asking the wrong question and the right question is how to setup my own mining pool?  Or maybe there is a better blockchain software other than bitcoind? 

My goal would be to host my own wallet and blockchain without relying on a third party.  How do mining pools do it?  I know someone here knows how to do this!

Thanks
Pages:
Jump to: