diff --git a/cltunaminer/main.ts b/cltunaminer/main.ts index e810405..541d912 100644 --- a/cltunaminer/main.ts +++ b/cltunaminer/main.ts @@ -55,10 +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 }) => { - //submitApiUrl = submitApiUrl || "http://localhost:8090/api/submit/tx"; - + .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. @@ -333,7 +332,7 @@ const mine = new Command() difficulty_number, epoch_time, BigInt(90000 + realTimeNow), - fromText("AlL HaIl tUnA"), + extra ? fromText(extra) : 0n, interlink, ]);