@@ -360,7 +360,7 @@ static struct io_plan *init_hsm(struct io_conn *conn,
360360 struct sha256 * force_channel_secrets_shaseed ;
361361 struct secret * hsm_encryption_key ;
362362 struct secret hsm_secret ;
363- bool warmstart ;
363+ bool coldstart ;
364364
365365 /* This must be lightningd. */
366366 assert (is_lightningd (c ));
@@ -408,10 +408,10 @@ static struct io_plan *init_hsm(struct io_conn *conn,
408408 }
409409
410410 /* Is this a warm start (restart) or a cold start (first time)? */
411- warmstart = access ("INITED " , F_OK ) ! = -1 ;
411+ coldstart = access ("WARM " , F_OK ) = = -1 ;
412412
413413 proxy_stat rv = proxy_init_hsm (& bip32_key_version , chainparams ,
414- warmstart , & hsm_secret ,
414+ coldstart , & hsm_secret ,
415415 & node_id , & pubstuff .bip32 );
416416 if (PROXY_PERMANENT (rv )) {
417417 status_failed (STATUS_FAIL_INTERNAL_ERROR ,
@@ -427,7 +427,7 @@ static struct io_plan *init_hsm(struct io_conn *conn,
427427 }
428428
429429 /* Mark this node as already inited. */
430- int fd = open ("INITED " , O_WRONLY |O_TRUNC |O_CREAT , 0666 );
430+ int fd = open ("WARM " , O_WRONLY |O_TRUNC |O_CREAT , 0666 );
431431 assert (fd != -1 );
432432 close (fd );
433433
0 commit comments