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

Function prompt

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

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

Callers 1

read_hsm_passphraseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected