From 7f5b9dd95186dc003c11b2153cef24f014532a20 Mon Sep 17 00:00:00 2001 From: QCPOLstakepool Date: Tue, 5 Sep 2023 19:14:54 -0400 Subject: [PATCH 1/2] EXTRA env --- cltunaminer/main.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cltunaminer/main.ts b/cltunaminer/main.ts index e195e62..5425ac6 100644 --- a/cltunaminer/main.ts +++ b/cltunaminer/main.ts @@ -55,8 +55,9 @@ const mine = new Command() .env("KUPO_URL=", "Kupo URL", { required: true }) .env("OGMIOS_URL=", "Ogmios URL", { required: true }) .env("SUBMIT_API_URL=", "Submit API Url", { required: false }) + .env("EXTRA=", "Data to include in the extra field", { required: false }) .option("-p, --preview", "Use testnet") - .action(async ({ preview, submitApiUrl, ogmiosUrl, kupoUrl }) => { + .action(async ({ preview, extra, submitApiUrl, ogmiosUrl, kupoUrl }) => { submitApiUrl = submitApiUrl || "http://localhost:8090/api/submit/tx"; //-------------------------------------------------------------------------------------------- @@ -291,7 +292,7 @@ const mine = new Command() difficulty_number, epoch_time, BigInt(90000 + realTimeNow), - fromText("AlL HaIl tUnA"), + extra ? fromText(extra) : 0n, interlink, ]); From 05f8b9f4b99845aea8701ffb182166b784be848e Mon Sep 17 00:00:00 2001 From: QCPOLstakepool Date: Tue, 5 Sep 2023 20:50:34 -0400 Subject: [PATCH 2/2] Fix merge conflicts --- cltunaminer/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cltunaminer/main.ts b/cltunaminer/main.ts index 3eb56f6..541d912 100644 --- a/cltunaminer/main.ts +++ b/cltunaminer/main.ts @@ -57,7 +57,7 @@ const mine = new Command() .env("SUBMIT_API_URL=", "Submit API Url", { required: false }) .env("EXTRA=", "Data to include in the extra field", { required: false }) .option("-p, --preview", "Use testnet") - .action(async ({ preview, submitApiUrl, ogmiosUrl, kupoUrl }) => { + .action(async ({ preview, extra, submitApiUrl, ogmiosUrl, kupoUrl }) => { //-------------------------------------------------------------------------------------------- // put your miner core config in the .env file // syntax: hostname:port or only port if on the same machine.