wareck / cgminer-gekko

cgminer 4.12.1 with GekkoScience (Compac , 2pac , Newpac , R606 /R909 , CompacF) Also with Extranonce/nicehash support. Compatible with OpenWrt
Other
91 stars 39 forks source link

mined coins are going to another address #11

Open kalmike opened 3 years ago

kalmike commented 3 years ago

while i was solo mining the miner was showing me the address that i entered but by when checking the mined block in the explorer the mined coin was going to another address as if the miner was converting the address to another one during the mining process

here is my address format: 2VMgQQsLBretQ1oZXXFFA1HiGA7X1Bxnbp

wareck commented 3 years ago

this is probably a configuration error. There are two ways to mine solo mining directly on the Bitcoin core, in which case the mining address is the output address Miner on an online pool, in which case your mining address is replaced by the pool address basically a pool is a powerful virtual machine, which is made of several small machines In this case the mining address is the one of the virtual machine and not yours.

Give me your configuration and the parameters you use to mine so that I can check.

Are you using windows, linux or mac?

wareck

kalmike commented 3 years ago

this is probably a configuration error. There are two ways to mine solo mining directly on the Bitcoin core, in which case the mining address is the output address Miner on an online pool, in which case your mining address is replaced by the pool address basically a pool is a powerful virtual machine, which is made of several small machines In this case the mining address is the one of the virtual machine and not yours.

Give me your configuration and the parameters you use to mine so that I can check.

Are you using windows, linux or mac?

wareck

__Hi Mate, Ok i get what you are saying since i forgot to mention it, it is not Bitcoin that i'm solomining but another SHA256 POW coin, and the strange thing is when i use CPU "minerd" from pooler the address is properly interpreted at least the Segwit generated address starting with et###### but using by using this Segwit generated address on CGminer it is also accept by CGminer but the block mined are paid to a non-Segwit address (2######) which is none of what i've generated and when one of those non-Segwit address (not mine) where the coins have been sent there is no interpretation of anykind anymore means the address used to mine remain the same everywhere but i don't have access to that address because it is not mine(i've only imported it into my wallet as watcher). I have noticed it maybe because of the address format the working non-Segwit starts with "2dk" (number and 2 low cases) and the widnows wallet generated non-Segwit starts with "2EQ" (number and 2 Uppercases)** maybe the issue?

with the Segwit generated address (starting with etit######) all in lowcase, i can mine with it on minerd without issue but when i use it on CGminer it's converted on the coin explorer to non-Segwit address (starting 2####) which is not mine.

_Yes i'm using Windows.**

Thanks a lot!

Regards

Mike

see attached screenshots

_Not-Working generated non-Segwit_2EQ

unkown non-Segwit-address working_2_2dk mined block 12679 paid to another address mined block 12679

unkown non-Segwit-address working_2dk

wareck commented 3 years ago

Hi If I understand you made a mistake On the first picture you mine with the 2EQ.. address => mining is going to 2EQ adress then on other picture you use 2dk... address mining is going to 2dk address the other number is txid... (id of the transaction) When you solo mine you make coin directly on your wallet because safety was already checked with RPC password it's a non segwit adresss then after a certain amount of check, the coin is added to the blockchain, and crypted.

You can check that with blockchain explorer, there is no reason to cgminer to send coin to another addresss.

kalmike commented 3 years ago

Hi If I understand you made a mistake On the first picture you mine with the 2EQ.. address => mining is going to 2EQ adress then on other picture you use 2dk... address mining is going to 2dk address the other number is txid... (id of the transaction) When you solo mine you make coin directly on your wallet because safety was already checked with RPC password it's a non segwit adresss then after a certain amount of check, the coin is added to the blockchain, and crypted.

You can check that with blockchain explorer, there is no reason to cgminer to send coin to another addresss.

when i mine with the 2EQ---address (Windows Wallet) the coins mined to another 2xxx address and when i mine to a Segwit address (etitxxx) the mined coins go also to a non-Segwit 2xxx address but i received none of the coins in my windows wallet.

kalmike commented 3 years ago

and this is what i have noticed when i check on wallet console both my windows wallet (from which the mined coin go somewhere else) and the address where the mined coins has landed :

———————————————————————————— Automatically created blockchain address while mining

13:32:57

getaddressinfo 2w8sWxWjmdyeHwTAf38PftpVjWvSFGogNk

13:32:57

{ "address": "2w8sWxWjmdyeHwTAf38PftpVjWvSFGogNk", "scriptPubKey": "76a914ce0b2b27437e8023be76884fd5e46891708a950e88ac", "ismine": false, "solvable": false, "iswatchonly": false,

"isscript": false,

"iswitness": false, "ischange": false, "labels": [ ] }

————————————————————————————

Windows Wallet

13:33:15

getaddressinfo 2XoGXrDT4TWmUWK5dco5BmYi71fVWmTGB7

13:33:15

{ "address": "2XoGXrDT4TWmUWK5dco5BmYi71fVWmTGB7", "scriptPubKey": "a914ce0b2b27437e8023be76884fd5e46891708a950e87", "ismine": false, "solvable": false, "iswatchonly": false,

"isscript": true,

"iswitness": false, "ischange": false, "labels": [ "Mike" ] }

could it be that the issue is on the option "isscript" ?

=> 2w8sWxWjmdyeHwTAf38PftpVjWvSFGogNk as you can see above this is the address where the mined coins have landed and i have no control over that address since i don't own it but when i try then to mine on that same address i can see that the rewards are also paid there directly without problem

wareck commented 3 years ago

Hello Because I had no answer to my reqest (what kind of coin you mine) I can't doi real test...

But I'm 99,99% sure it's something wrong with you configuration. In another hand, in the file you upload we can read this : " Automatically created blockchain address while mining 13:32:57 getaddressinfo 2w8sWxWjmdyeHwTAf38PftpVjWvSFGogNk 13:32:57"

So that's why you mine on another address...

I'll close this issue this evening.

best regards wareck

edit : after investigation, coin kalmike wants to mine was a sha256d with asic resistance. This coin can only be mined by CPU and cannot be mined by Gekko. It was not a cgminer issue

soldate commented 3 years ago

im having the same problem..

is this maybe?

https://github.com/benoitm974/cgminer-gekko/commit/9733e0261a3f78f364338cce1ecad0eda8041a02

wareck commented 3 years ago

It's not a cgminer issue it's when you "solo mine" Your address is your wallet, when you mine 99% of coin is going to wallet, 1% is for fees. The wallet software will create a temporary address for fee/mining. then coin will go from temporary adresse to your wallet address, and the transaction is going to the blockchain to be checked. It's more or less a safety rules to be sure you don't make "fake coin"

And the link you give : if (!previousblockhash || !target || !version || !curtime || !bits || !coinbase_aux) { applog(LOG_ERR, "Pool %d JSON failed to decode GBT", pool->pool_no); return false; } it's only for log and only for solomining bitcoin...

Give me 10 minutes to make the change. I'm pretty sure it will not change anything...

wareck commented 3 years ago

Hello i've made the update and upload new windows version. Can you check it ? If nothing change, contact me and give me some data

And i'll try for real at home, to check if it's cgminer or other setup make the mess

wareck@gmail.com

soldate commented 3 years ago

Hi, thanks, but still not working..

i create a coin that is a bitcoin clone. Niobio (NBR)

im solo mining using gekko new pack

i mine using this address bc1qk5338fcquct36tn29l6f8ft5jvurnd72awxc29

then i found this block. https://niobio.cash/block-height/38670

the coinbase address is not my address..

wareck commented 3 years ago

Ok So Soldate, you have the same issue than "kalmike" just upper this message....

You want to try mining Niobio cash (NBR) ? What is the algorithm for mining this coin ? ==> Cryptonight Heavy.

It's not an sha256 coin , you CAN NOT use a Gekko new pack to mine that coin !

You probably find "dust" and this was send to the blockchain. Someone else validate/unvalidate and consolidate your find , and earn NBR because this guy do the job.

This only way to mine solo NBR is to use your computer CPU, with a software like xmrig. Or buy/use a specific ASIC miner like a Baikal Giant N

With the right software and the good configuration there is no probleme to mine : (I use XMRig and install niobio wallet this morning)

nbr

You can see , the algorith is CN-HEAVY (cryptonight-heavy)

nbr2

So there is no issue with cgminer-gekko issue is not the good mining program for this coin

best regards wareck

soldate commented 3 years ago

Hi wareck, Niobio (NBR) was cryptonight.

I made a swap to Bitcoin code.

Today Niobio is a bitcoin clone.

https://github.com/soldate/niobiocoin

kalmike commented 3 years ago

@wareck told ya something is wrong with the address convertion in your cgminer

kalmike commented 3 years ago

Hi wareck, Niobio (NBR) was cryptonight.

I made a swap to Bitcoin code.

Today Niobio is a bitcoin clone.

https://github.com/soldate/niobiocoin

it may work with cgminer 10.0 from Klovas i have the windows version and i'm trying now but it's showing me "waiting from work to be available from pools"

wareck commented 3 years ago

I do not understand https://github.com/soldate/niobiocoin what's this ? It's your own code (take bitcoin core and change BTC to NBR in the code ?)

I'm building the code from your source and check

wareck commented 3 years ago

I'm working on it You forked your code from bitcoin 0.22. I'm not sure, but i think there is no solo mining support since 0.19

what is you cgminer setup for mining ?

soldate commented 3 years ago

Niobio (NBR) was cryptonote. That coin is now dead. I create a new one and give the same name and ticker. (people call this SWAP) the Niobio (NBR) in CMC is the new one, the bitcoin clone, not the cryptonote anymore. https://github.com/soldate/niobiocoin is the official repository. Im the coin creator. "creator" means that i clone bitcoin :-D

I try: ./cgminer -o http://localhost:8432 -u user -p password --btc-address bc1qk5338fcquct36tn29l6f8ft5jvurnd72awxc29 --gekko-newpac-freq 100

in the console i see mining with right address, but when the block is found.. is another address at coinbase tx.

soldate commented 3 years ago

Hi wareck, Niobio (NBR) was cryptonight. I made a swap to Bitcoin code. Today Niobio is a bitcoin clone. https://github.com/soldate/niobiocoin

it may work with cgminer 10.0 from Klovas i have the windows version and i'm trying now but it's showing me "waiting from work to be available from pools"

thanks, i will try.. all that i tried already give me a loop of "GBT error". wareck is my hope :-)

wareck commented 3 years ago

Hello I found some errors in my code, I'll update the new code after the week-end (need to check and tests) For the solo mining, i'm working on it

wareck commented 3 years ago

Hello I uploaded a new version which fix several error (kalmike, now it works for etitanium and several other new coin) For solomining , I'm still working on it.

kalmike commented 3 years ago

Hello I uploaded a new version which fix several error (kalmike, now it works for etitanium and several other new coin) For solomining , I'm still working on it.

understood Mate! where can we download it? the latest version is from february 18th.

Thx!

kalmike commented 3 years ago

just tested it but for the niobiocoin and another one it says :

"JSON failed to decode GBT"

wareck commented 3 years ago

I've said : " For solomining , I'm still working on it." For now it do not work. (for etitanium: not passing a double check, now it works , for pool mining)

in fact the solo is abandoned since version 4.9 of cgminer. With the segwit and the new security features of bitcoin, the devellopers have given up. It can work , but only for "official bitcoin" with a double check on coinbase (that's why mining going to another address) I'me searching an easy solution to make it works again

kalmike commented 3 years ago

I've said : " For solomining , I'm still working on it." For now it do not work. (for etitanium: not passing a double check, now it works , for pool mining)

in fact the solo is abandoned since version 4.9 of cgminer. With the segwit and the new security features of bitcoin, the devellopers have given up. It can work , but only for "official bitcoin" with a double check on coinbase (that's why mining going to another address) I'me searching an easy solution to make it works again

alright awaiting your feedback then.

kalmike commented 3 years ago

I've said : " For solomining , I'm still working on it." For now it do not work. (for etitanium: not passing a double check, now it works , for pool mining)

in fact the solo is abandoned since version 4.9 of cgminer. With the segwit and the new security features of bitcoin, the devellopers have given up. It can work , but only for "official bitcoin" with a double check on coinbase (that's why mining going to another address) I'me searching an easy solution to make it works again

also any possibility to make it work for the cgminer Scrypt or simply insert the scrypt code in the current cgminer along with the futurebit driver?

kalmike commented 3 years ago

you might want to inspire yourself from this cpuminer from pooler which works pretty well:

https://github.com/pooler/cpuminer

hope this helps

soldate commented 2 years ago

Hi kalmike, any news? Please help! :-D

kalmike commented 2 years ago

Hi Soldate, still waiting for Wareck :-)

soldate commented 2 years ago

Ops, sorry! Go Wareck! lol :-D

soldate commented 2 years ago

Wareck? Please help, im with two new gekko waiting to mine niobio (nbr) :-D