[Deleted]
-
ghost commented at 11:13 PM on January 10, 2022: none
- unknown added the label Bug on Jan 10, 2022
-
sipa commented at 11:21 PM on January 10, 2022: member
generatetoblock is an RPC for testing purposes. It is only expected to reliably work on test networks.
On the actual Bitcoin network, BTC cannot reasonably be mined using commodity hardware as the difficulty is far too high for that. Attempting to do so would earn you orders of magnitudes less than the cost of electricity and wear and tead to your hardware, so Bitcoin Core does not support doing so. You need custom hardware (called ASICs) to do that.
-
sipa commented at 12:10 AM on January 11, 2022: member
Fair point, it's not clear from the RPC documentation. I've opened #24028 to improve it.
To be clear: what this RPC does is perform 1000000 attempts at creating a valid block. If it can't succeed with that, it returns an error. It "works" the same way on mainnet too, it's just an incredible waste of time to try. You'd need 171 trillion calls on average to this RPC on average to construct a block at the current difficulty.
I'm planning on exploiting the target hash leading 0's with my own optimized script:
You won't ever mine any coins with this RPC or with PHP code, on mainnet.
-
MarcoFalke commented at 7:43 AM on January 11, 2022: member
Usually the issue tracker is used to track technical issues related to the Bitcoin Core code base. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange or the
#bitcoinIRC channel on Libera Chat. -
MarcoFalke commented at 8:31 AM on January 11, 2022: member
Thanks for the report. The documentation will be updated in #24028. Though, I think general mining questions not related to the Bitcoin Core software are better answered elsewhere.
- MarcoFalke closed this on Jan 11, 2022
- unknown renamed this:
RPC generateblock doesn't mine a block
Deleted
on Sep 20, 2022 - unknown renamed this:
Deleted
[Deleted]
on Sep 20, 2022 - bitcoin locked this on Sep 20, 2023