diff --git a/ckpool/patches/0007-rename-coinbase-tag-ckpool-to-kamado.patch b/ckpool/patches/0007-rename-coinbase-tag-ckpool-to-kamado.patch new file mode 100644 index 0000000..ed6a51d --- /dev/null +++ b/ckpool/patches/0007-rename-coinbase-tag-ckpool-to-kamado.patch @@ -0,0 +1,13 @@ +diff --git a/src/stratifier.c b/src/stratifier.c +index 8281fa02..38b2ac02 100644 +--- a/src/stratifier.c ++++ b/src/stratifier.c +@@ -574,7 +574,7 @@ static void generate_coinbase(ckpool_t *ckp, workbase_t *wb) + len += wb->enonce2varlen; + + wb->coinb2bin = ckzalloc(512); +- memcpy(wb->coinb2bin, "\x0a\x63\x6b\x70\x6f\x6f\x6c", 7); ++ memcpy(wb->coinb2bin, "\x0a\x6b\x61\x6d\x61\x64\x6f", 7); + wb->coinb2len = 7; + if (ckp->btcsig) { + int siglen = strlen(ckp->btcsig); diff --git a/ckpool/patches/README.md b/ckpool/patches/README.md index 15b00d9..888a97d 100644 --- a/ckpool/patches/README.md +++ b/ckpool/patches/README.md @@ -17,6 +17,7 @@ alphabetical order: | `0001-expose-bestever-in-runtime-json.patch` | Adds `bestever` field to the `users` / `workers` runtime socket JSON | | `0002-enable-socket-api-responses.patch` | Always reply on the listener socket so kamado-api gets responses even with `btcsolo: true` | | `0003-share-error-as-stratum-array.patch` | Maps `share_err` to Stratum spec error codes; emits `[code, msg, null]` per Slush | +| `0007-rename-coinbase-tag-ckpool-to-kamado.patch` | Replaces hardcoded "ckpool" branding in coinbase scriptSig with "kamado" (same 6 bytes) | ### Why 0001 matters