MCPcopy Create free account
hub / github.com/ElementsProject/lightning / prompt

Function prompt

lightningd/options.c:498–505  ·  view source on GitHub ↗

Test code looks in logs, so we print prompts to log as well as stdout */

Source from the content-addressed store, hash-verified

496
497/* Test code looks in logs, so we print prompts to log as well as stdout */
498static void prompt(struct lightningd *ld, const char *str)
499{
500 printf("%s\n", str);
501 log_debug(ld->log, "PROMPT: %s", str);
502 /* If we don't flush we might end up being buffered and we might seem
503 * to hang while we wait for the password. */
504 fflush(stdout);
505}
506
507/* Prompt the user to enter a password, from which will be derived the key used
508 * for `hsm_secret` encryption.

Callers 1

opt_set_hsm_passwordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected