Pages:
Author

Topic: SoloMining with CGMiner against Bitcoind / Bitcoin Core v0.18.1 - page 4. (Read 2720 times)

legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
...
Ignorance is bliss.
...
... and I even pointed out the exact reasons further up why it is a bad idea ... sigh.

If someone tells you not to smash your thumb with a mallet coz it will hurt, do you need to try it anyway?

The big pools still lose blocks due to orphan races - just no one reports the losses.
I see some of them coz I have a world wide network that also reports these events.

If you are 10 times slower than the big pools at doing block changes you will get 10 or more times the orphans.
If you are 30 times slower, you will get 30 or more times the orphans and also get stale blocks that no one will ever see.

As for running slow bitcoin and no global fast network connectivity, that 30 number would be minimum, and probably worse.
full member
Activity: 633
Merit: 159
How is it a 'hero' to help fools do something stupid?

Look, even that other pool a lot of you solo mine on has lost around 5 blocks due to negligence and miss-management.
The last guy who lost a block there was ripped off by the guy who runs it - and he has around $100mil in BTC - lol.

Ignorance is bliss.



A hero in my mind usually perform things that many others cannot and help when many others cannot.

You have a specific skillset with coding and as you have read by many on here there is a desire to do this.

Since solo mining on our own is currently is not easily done with CGMiner and Bitcoin Core  and I personally haven't heard of anyone losing a block solo mining on their own... We really don't know if its stupid idea or not.  Reminds me of a great quote "Nothing beats a trial but a failure" from Maya Angelou.

The comment about the "other pool" is even more reason to give everyday folks a shot of doing this on their own.

You kinda indirectly just proved the my point about the need for this.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
How is it a 'hero' to help fools do something stupid?

Look, even that other pool a lot of you solo mine on has lost around 5 blocks due to negligence and miss-management.
The last guy who lost a block there was ripped off by the guy who runs it - and he has around $100mil in BTC - lol.

Ignorance is bliss.

full member
Activity: 633
Merit: 159
Kano,

I have been very successful with my mining endeavors from the altcoin side (ETH,RVN,ZIL) and the BTC side. And yes some of that luck has in fact come from "bad ideas" and "just about impossible" situations as you know.

My offer to send you some BTC was genuine and offered in thanks for your coding efforts on CGMiner as without it I wouldn't have ever been mining BTC directly let alone find a block. Let's call it good karma or at least an attempt at such from my end.

Now back to BTC solo mining efforts. As my BTC mini mining farm grows and it is indeed growing I would still love the ability to be able to solo mine directly to Bitcoin Core. It's not the fact that I don't want to mine to a pool, its more the fact that I like to be in more control of my own environment when mining.

Given that I understand what you are saying about block distribution from what I gather the relatively small amount of data that is transmitted I believe (excuse my ignorance if it in fact is that) that the connections to other nodes are in fact more important than internet speed. I don't think anyone here mines on dial up at this point.  Wink Distribution of said data shouldn't require a significant amount of compute power or network throughput even if sharing that data with 30+ nodes within a very short window.

My suggestion to modify CGMiner to allow for solo mining to Bitcoin Core would benefit the Bitcoin network as a whole.

My logic would be quite simply that adding additional full nodes to the BTC network helps everyone.

The sending of hashpower to your pool (solo or otherwise) even if just for a short duration with some sort of split with the end user would also be an added benefit for the end miner as well. Not to mention would improve the overall hashrate and I believe the health of your pool.

Now as for the transparency part there are many different mining software out there that have fees associated with the use of their software. I am not sure if by doing what I suggest would violate the licensing of CGMiner but if it didn't then implementing this functionality would be a tremendous help to the community.

I can't say I have ever lost a block solo mining but that would be something I and many others would be willing to try.

Make no mistake I respect your opinions and your expertise on blockchain programming but you have the option to be a hero to many here that want to do just as I am trying as well as help yourself (through your pool) in turn as well.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
It has nothing to do with 'pay for effort'
That is the same as the reason why I told you not to give me any BTC when you wanted to.

Instead, it has to do with you losing blocks.

Unless you run all of:
a high speed bitcoin that can average processing network block changes in less than 100ms.
a bitcoin that gets blocks from the whole internet very fast
a bitcoin that can distribute blocks to the whole internet very fast
a method to distribute your blocks around the world to your own distributed nodes very quickly

If you don't do the above, then your chances of losing blocks due to stale or orphan is much higher than a well connected pool that does the above

Suggesting people solo mine at home is, to be blunt, negligent, bad advice.

Some people seem to think that running bitcoin on a rpi is a great idea.
. It is not if you are solo mining.
Some people think that they don't need a fast and well distributed network.
. It is no good if you are solo mining.
Some people think it is ok to CPU mine.
. It is not, it's a complete waste of time.

I added the 3rd one since the three together seem to be common ignorance.

At home my main bitcoin runs on it's own on an i7-10700 with 32GB ram and a 1GBit internet connection.
No chance I would be using it to try to solo mine blocks.
That would be stupid.
I use it for testing and that's as far as I would go with it.
Being a pool developer and the main cgminer developer, that is a necessity.

But it gets worse:
There's the complete misunderstanding about anonymity.
No bitcoin isn't anonymous. If anyone told you that, then they don't understand bitcoin.
Also, you'll need your bitcoin node to be well connected and have a fast connection to the bitcoin network, seeing all the network blocks as fast as possible.
Hiding your bitcoin node behind networks/vpns/tor/etc will definitely increase the chances of you losing a block, if you ever find one.

... and aside: worse, mining to a pool sending your bitcoin address twice every minute is exceptionally far from anonymous.

Yes people are free to do stupid things, but I'm not gonna go out of my way to help them do it, even for BTC.
As said, I'll get around to putting the simple fix in one day, but anyone with the idea that my efforts and compensation are related, has no idea.
full member
Activity: 633
Merit: 159
Due to the many reasons I've explained - I consider this a bad idea.
Many people I discuss anything about bitcoin with seem to not even understand the issues.

Some time when I get around to doing the next gekko driver I'll probably fix the solo code, but helping people lose blocks always sounds like a bad idea to me.

Kano,
I know you are busy I get it but if I had the coding knowledge you have demonstrated I would consider adding a small "10 second" or "30 second" per hour or whatever fee to the CGMiner software and then point that traffic at your solo pool.

Forgive me if that would violate the licensing but....

Come up with some sort of split so that with the miner and your solo pool would be equally or proportionality rewarded (be transparent) if they hit a solo block.

You can do this and I for one would be using it!


People are going to do it anyway. Better they do it in at least a working environment that you wrote.
If not, there is someone out there who will hack it together and kind of sorta get it working and if they don't have anything better to use they will use what they have.

-Dave

Dave,
I suggest he use my logic above to help pay for his efforts.
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
Due to the many reasons I've explained - I consider this a bad idea.
Many people I discuss anything about bitcoin with seem to not even understand the issues.

Some time when I get around to doing the next gekko driver I'll probably fix the solo code, but helping people lose blocks always sounds like a bad idea to me.

People are going to do it anyway. Better they do it in at least a working environment that you wrote.
If not, there is someone out there who will hack it together and kind of sorta get it working and if they don't have anything better to use they will use what they have.

-Dave

legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Due to the many reasons I've explained - I consider this a bad idea.
Many people I discuss anything about bitcoin with seem to not even understand the issues.

Some time when I get around to doing the next gekko driver I'll probably fix the solo code, but helping people lose blocks always sounds like a bad idea to me.
full member
Activity: 633
Merit: 159
Hi @Sledge0001 I'm interested in doing something similar using a raspiblitz node (https://github.com/rootzoll/raspiblitz) and an Antminer S9k currently mining with ckpool (https://solo.ckpool.org/), however, everything @kano says makes sense.

Decentralization and trustlessness are wanted in the bitcoin BTC community. Considering that ckpool have the infrastructure with these nodes connected to big pools it is possible to solo-self-miners to connect directly and fast with ckpool to improve the odds? I really want to use my old s9k with the local full node and do the lotto mining but most importantly learn about the experience.

I'm a volunteer if you help me to achieve this, we can try to measure latency between nodes or find a list of the biggest pools and nodes and do nice research for the community. I don't think that I'm the only one interested in achieving this. What do you think?


I am going to dive back into this further as well.

My initial thoughts are simply to keep my larger miners pointed at a pool (4 x S19A Pro's at the moment) but revisit this with my USB miners and also in the mean time try adding a few Futurebit Apollo BTC miners as well.

I believe that given the modest amount of data that is included in every block transaction the speed of most internet services should be fine assuming that the node is well connected to other fast nodes.

I'm game to try this!

@Kano how hard would it be to add the ability to solomine using CGMiner to the newest Bitcoin Core? I for one and I bet others would be willing to donate to that development!
newbie
Activity: 1
Merit: 0
Hi @Sledge0001 I'm interested in doing something similar using a raspiblitz node (https://github.com/rootzoll/raspiblitz) and an Antminer S9k currently mining with ckpool (https://solo.ckpool.org/), however, everything @kano says makes sense.

Decentralization and trustlessness are wanted in the bitcoin BTC community. Considering that ckpool have the infrastructure with these nodes connected to big pools it is possible to solo-self-miners to connect directly and fast with ckpool to improve the odds? I really want to use my old s9k with the local full node and do the lotto mining but most importantly learn about the experience.

I'm a volunteer if you help me to achieve this, we can try to measure latency between nodes or find a list of the biggest pools and nodes and do nice research for the community. I don't think that I'm the only one interested in achieving this. What do you think?
newbie
Activity: 4
Merit: 8
Hi Sledge0001!

My name is Seb and I have a mining channel called Sebs FinTech Channel on YouTube: https://www.youtube.com/c/SebsFinTechChannel

I'm super interested in your story of hitting a block mining on the USB miners.

I recently made a video on setting up the Compac Fs to mine and I have another video planned on how to set them up to mine solo.

I'd love to ask you a few questions about your farm, your experience hitting a block and any advice you might have for people wanting to try something similar.

Please let me know if you'd be open to this. We could do it either here through text, do a voice call or video call, whatever you feel most comfortable with and you can remain as anonymous as you like Smiley

Please send me a DM if you're interested.

Best regards,
Seb
member
Activity: 60
Merit: 20
getblocktemplate and submitblock cmd in bitcoin core seem not affected by taproot stuff. bitcoin core code has no modified.



I wonder if cgminer can work without using midstate in its work->data  with BM1387 or 1389 Huh
driver.gekko.c use midstate in init_task(). Has anybody tried before?

If don't use midstate, what is the cmd sent to usb?  now, it is 0x21.  (info->task[0] = 0x21)

In gbt_solo mode, it is better not use midstate. There is a problem in data flip or big endian order byte issue.
It seem different using midstate to meet data from bitcoin core.

member
Activity: 100
Merit: 29
Did you read it? That's what I got from my readings:
There is no such thing like a taproot block, since taproot is applied on transaction level. Legacy and segwit transactions will always continue to be supported - only a hard fork could change that. And as such, a miner that is mining these legacy and segwit transactions - like cgminer in its current state - will continue to be supported. At least up until the very day when everybody has switched to taproot, leaving only taproot transactions in the mempool.

I might be utterly wrong here, so please tell me. But I want proof then Smiley
legendary
Activity: 3822
Merit: 2703
Evil beware: We have waffles!
Perhaps if you read about what Taproot is and does you'll understand the implications. AFAIK non-taproot blocks will be rejected by the majority of nodes as they have all updated to the latest version of Core that triggered it.
member
Activity: 100
Merit: 29

ok, thanks for the info.

Did you modify cgminer any further then adding golden-guys comit?
I now sync the testnet and try it, just to confirm it.

I was thinking that taproot has to be implemented as segwit was.
My concern was, that the version bits have to be valid for taproot.


I just updated cgminer 4.11.1 with the golden-guy patches, fired up bitcoind 22 and synced testnet3. So even without any change on the version bit (in regards to signalling taproot support) the solo-mined blocks are accepted and confirmed on the blockchain just fine. I have yet to find any implication on the mining software that might have been introduced by the taproot changes.

EDIT: According to the getblocktemplate response as returned by bitcoind 22, the client (i.e. cgminer) may just disregard the "taproot" rule and can continue using the existing blocktemplate as-is. Which basically means as long as there are non-taproot transactions added to the mempool, it will just continue to create valid blocks. As can be seen and verified on testnet.
legendary
Activity: 2483
Merit: 1482
-> morgen, ist heute, schon gestern <-
Solomining with cgminer is not possible yet.

Kano is working on it:
https://bitcointalksearch.org/topic/m.58276516
Quote
I'll look into solo working with 0.21 when I get to doing that - give it a little while Smiley
But no, it's far from ideal to use a version of bitcoin prior to 0.21, since when taproot activates next month, you must be running 0.21 or later.
Using a non taproot activated bitcoind (even with the fix in cgminer from golden-guy) will not produce a valid block.
Using a taproot activated bitcoind will also not produce a valid block due to the lack of taproot support in cgminer.
That's the info that I needed to hear!
I have moved my miners back to Kano's solo pool. Smiley
Thank you.
That info is just plain wrong though... Solo mining on bitcoind 22.0 with cgminer indeed produces valid blocks. I have just mined 2 blocks on testnet3 (which has taproot enabled) : https://www.blockchain.com/btc-testnet/address/miFe5wH65oHbLsp8hXzahyPe4aqtwcCMaK

ok, thanks for the info.

Did you modify cgminer any further then adding golden-guys comit?
I now sync the testnet and try it, just to confirm it.

I was thinking that taproot has to be implemented as segwit was.
My concern was, that the version bits have to be valid for taproot.
member
Activity: 100
Merit: 29
Solomining with cgminer is not possible yet.

Kano is working on it:
https://bitcointalksearch.org/topic/m.58276516
Quote
I'll look into solo working with 0.21 when I get to doing that - give it a little while Smiley
But no, it's far from ideal to use a version of bitcoin prior to 0.21, since when taproot activates next month, you must be running 0.21 or later.

Using a non taproot activated bitcoind (even with the fix in cgminer from golden-guy) will not produce a valid block.
Using a taproot activated bitcoind will also not produce a valid block due to the lack of taproot support in cgminer.

That's the info that I needed to hear!

I have moved my miners back to Kano's solo pool. Smiley

Thank you.

That info is just plain wrong though... Solo mining on bitcoind 22.0 with cgminer indeed produces valid blocks. I have just mined 2 blocks on testnet3 (which has taproot enabled) : https://www.blockchain.com/btc-testnet/address/miFe5wH65oHbLsp8hXzahyPe4aqtwcCMaK

full member
Activity: 633
Merit: 159
Solomining with cgminer is not possible yet.

Kano is working on it:
https://bitcointalksearch.org/topic/m.58276516
Quote
I'll look into solo working with 0.21 when I get to doing that - give it a little while Smiley
But no, it's far from ideal to use a version of bitcoin prior to 0.21, since when taproot activates next month, you must be running 0.21 or later.

Using a non taproot activated bitcoind (even with the fix in cgminer from golden-guy) will not produce a valid block.
Using a taproot activated bitcoind will also not produce a valid block due to the lack of taproot support in cgminer.

That's the info that I needed to hear!

I have moved my miners back to Kano's solo pool. Smiley

Thank you.
legendary
Activity: 2483
Merit: 1482
-> morgen, ist heute, schon gestern <-
Solomining with cgminer is not possible yet.

Kano is working on it:
https://bitcointalksearch.org/topic/m.58276516
Quote
I'll look into solo working with 0.21 when I get to doing that - give it a little while Smiley
But no, it's far from ideal to use a version of bitcoin prior to 0.21, since when taproot activates next month, you must be running 0.21 or later.

Using a non taproot activated bitcoind (even with the fix in cgminer from golden-guy) will not produce a valid block.
Using a taproot activated bitcoind will also not produce a valid block due to the lack of taproot support in cgminer.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
...
Kano,

I was mining to your solo pool to begin with. I chose to go this route is because I kept getting logged out of your pool and with me gifting 2 co-workers Compaq F sticks we all couldn't login from the same network without getting locked out.

Any chance you can whitelist a static IP for me so we can all login simultaneously? If so I will come back!

IP address sent in a PM..
Miners don't get locked out that way.

You may get locked out of viewing the web site if you like pounding the refresh button, or keep accessing the API with invalid information, though that doesn't affect mining.
The IP you sent me doesn't show up anywhere.
You'd need to PM me a username (or tell me in discord)
There are no 'whitelisted' IP addresses on the pool at all.
Pages:
Jump to: