pooler / cpuminer

CPU miner for Litecoin and Bitcoin
https://bitcointalk.org/index.php?topic=55038.0
Other
2.73k stars 1.2k forks source link

Custom signet hint #285

Open Sjors opened 1 week ago

Sjors commented 1 week ago

It's not possible to CPU mine on the main signet, because it's signed.

However you can create a custom signet and set the challenge to OP_TRUE (signetchallenge=51 in bitcoin.conf). This triggers an exception in the BIP where no signature is required.

The only change needed here is to add signet to GBT_RULES:

#define GBT_RULES "[\"segwit\", \"signet\"]"

See https://github.com/Sjors/cpuminer/commit/20eb197e9ce7c4396d2ffb394e4faa0281bf1c02

Sjors commented 1 week ago

The main use case for signets without signatures is probably to test mining software, e.g. I find it very useful for testing stratum v2 stuff.