]> git.codecow.com Git - nano-pow.git/commitdiff
Adjust output of server GET response.
authorChris Duncan <chris@zoso.dev>
Thu, 19 Jun 2025 07:31:19 +0000 (00:31 -0700)
committerChris Duncan <chris@zoso.dev>
Thu, 19 Jun 2025 07:31:19 +0000 (00:31 -0700)
src/bin/server.ts

index a31f58cb0b40abc0596019627ea1db446bbaea48..ca40e140acae88f147ee90de5fa10cf29627dc99 100755 (executable)
@@ -215,20 +215,19 @@ function get (res: http.ServerResponse): void {
                .writeHead(200, { 'Content-Type': 'text/plain' })
                .end(`Usage: Send POST request to server URL to generate or validate Nano proof-of-work
 
-Generate work for a BLOCKHASH with an optional DIFFICULTY:
-  curl -d '{ action: "work_generate", hash: BLOCKHASH, difficulty?: DIFFICULTY }'
+Generate work for a HASH with an optional DIFFICULTY:
+  curl -d '{ action: "work_generate", hash: HASH, difficulty?: DIFFICULTY }'
 
-Validate WORK previously calculated for a BLOCKHASH with an optional DIFFICULTY:
-  curl -d '{ action: "work_validate", work: WORK, hash: BLOCKHASH, difficulty?: DIFFICULTY }'
+Validate WORK previously calculated for a HASH with an optional DIFFICULTY:
+  curl -d '{ action: "work_validate", work: WORK, hash: HASH, difficulty?: DIFFICULTY }'
 
-BLOCKHASH is a big-endian 64-character hexadecimal string.
+HASH is a big-endian 64-character hexadecimal string.
 WORK is little-endian 16-character hexadecimal string.
 DIFFICULTY is an optional 16-character hexadecimal string (default: FFFFFFF800000000)
 
 Report bugs: <bug-nano-pow@zoso.dev>
 Full documentation: <https://www.npmjs.com/package/nano-pow>
-`
-               )
+`)
 }
 
 async function post (res: http.ServerResponse, reqData: Buffer[]): Promise<void> {