Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions cltunaminer/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ const mine = new Command()
.env("KUPO_URL=<value:string>", "Kupo URL", { required: true })
.env("OGMIOS_URL=<value:string>", "Ogmios URL", { required: true })
.env("SUBMIT_API_URL=<value:string>", "Submit API Url", { required: false })
.env("EXTRA=<value:string>", "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.
Expand Down Expand Up @@ -333,7 +332,7 @@ const mine = new Command()
difficulty_number,
epoch_time,
BigInt(90000 + realTimeNow),
fromText("AlL HaIl tUnA"),
extra ? fromText(extra) : 0n,
interlink,
]);

Expand Down