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

Function prompt

lightningd/options.c:546–553  ·  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

544
545/* Test code looks in logs, so we print prompts to log as well as stdout */
546static void prompt(struct lightningd *ld, const char *str)
547{
548 printf("%s\n", str);
549 log_debug(ld->log, "PROMPT: %s", str);
550 /* If we don't flush we might end up being buffered and we might seem
551 * to hang while we wait for the password. */
552 fflush(stdout);
553}
554
555/* Read HSM passphrase from user input */
556static char *read_hsm_passphrase(struct lightningd *ld)

Callers 1

read_hsm_passphraseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected