Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: syn00ack on July 12, 2019, 09:07:55 PM



Title: NOOB QUESTION. When using miner CLI do I put the receiving address of my wallet?
Post by: syn00ack on July 12, 2019, 09:07:55 PM
I just want to make sure when I'm in a mining pool and using CLI CGminer that I'm sending the payout to the right place!

For example:
My electrum wallet has multiple "receiving addresses" they all start with bc1xxxxxxxxxxxxxxxxxxxxxxxx.

Is that what I put in as the username in cgminer?

For example, is this correct?
If my receiving address is bc1XXXXX, then my bat file should read:

cgminer.exe -o stratum+tcp://pool.ckpool.org:3333 --suggest-diff 128 -u bc1XXXXX -p x

username "-u" is basically the entire receiving address in electrum wallet? And I can use any one of them since there are multiple ones?

Thanks for your assistance.


Title: Re: NOOB QUESTION. When using miner CLI do I put the receiving address of my wallet?
Post by: AdolfinWolf on July 12, 2019, 09:14:00 PM
That depends on the pool whether you can use a btc adress as your user login

Looking at the pool, it says the following:

Code: (http://ckpool.org/#/)
Set your username to your btcaddress with any or even no worker extension, and any password.
eg: cgminer -o stratum+tcp://pool.ckpool.org:3333 -u 1PKN98VN2z5gwSGZvGKS2bj8aADZBkyhkZ.0 -p x


So, any adress you control the private keys over should do.


Quote
username "-u" is basically the entire receiving address in electrum wallet? And I can use any one of them since there are multiple ones?
yes.




One thing i forgot to note: the bech32 adresses  (bc1xxxxxx), are *relatively* new. It could be that ckpool doesn't recognize them yet..?

In which case you should probably create a nested electrum segwit wallet.
You can still create these P2SH wallets using a quite unorthodox method described here -> https://bitcoinelectrum.com/creating-a-p2sh-segwit-wallet-with-electrum/

EDIT:
I do think they support native segwit by the looks of this post ->
Dumb question but does this pool support overt ASICBOOST?

Yep, dumb question.  :)

This pool was the pioneer of overt ASIC Boost.

And native segwit addresses :)

So you shouldn't have to do all of the above.


Title: Re: NOOB QUESTION. When using miner CLI do I put the receiving address of my wallet?
Post by: syn00ack on July 12, 2019, 09:24:11 PM
Thank you for your assistance!

I ran my batch file with the BC1 address and it looks like it connected. It says "Pool message: Authorised, welcome to ckpool.org bc1xxxxxxxxxxx"

Since it says authorized and not rejected, I'm assuming its a valid address for ckpool and that ckpool can accept segwit wallet addresses for payout?

Here is the CLI copy paste:
 Connected to pool.ckpool.org diff 10K with stratum as user bc1qhafs8tl4nnuux0udhn05mmz8y3edn7zzfegpfs292k0xkm69gnfqpfl8
 Block: b9ed9d81...  Diff:9.06T  Started: [17:10:57.027]  Best share: 141
--------------------------------------------------------------------------------
 SB management [P]ool management ettings [D]isplay options [Q]uit
 0: GSH 10032248: BM1387:02+ 100.00MHz T:100 P:94  (375:188) |  100% WU:^92% | 25.28G / 21.06Gh/s WU:294.2/m
--------------------------------------------------------------------------------
 [2019-07-12 17:10:56.651] Started cgminer 4.11.1
 [2019-07-12 17:10:56.658] Probing for an alive pool
 [2019-07-12 17:10:56.928] Pool 0 difficulty changed to 10000
 [2019-07-12 17:10:56.977] Pool 0 message: Authorised, welcome to ckpool.org bc1qhafs8tl4nnuux0udhn05mmz8y3edn7zzfegpfs2
92k0xkm69gnfqpfl86h!

 [2019-07-12 17:10:57.026] Pool 0 difficulty changed to 128
 [2019-07-12 17:10:57.026] Network diff set to 9.06T
 [2019-07-12 17:10:57.913] 0: GSH 0 - Toggling ASIC nRST to reset
 [2019-07-12 17:10:58.178] 0: GSH 0 - NewPac Bitcoin Miner (10032248)


Title: Re: NOOB QUESTION. When using miner CLI do I put the receiving address of my wallet?
Post by: AdolfinWolf on July 14, 2019, 11:27:22 AM
Thank you for your assistance!

I ran my batch file with the BC1 address and it looks like it connected. It says "Pool message: Authorised, welcome to ckpool.org bc1xxxxxxxxxxx"

Since it says authorized and not rejected, I'm assuming its a valid address for ckpool and that ckpool can accept segwit wallet addresses for payout?

I don't see any errors, so i would assume so, yes.

I'm not exactly an expert on this though.