Skip to content

Commit

Permalink
pettycoin-gateway: fix setup (privkey is needs P- prefix)
Browse files Browse the repository at this point in the history
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Aug 7, 2014
1 parent 5abfe3d commit f739337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pettycoin-gateway.c
Expand Up @@ -291,7 +291,7 @@ static void setup_gateway(const tal_t *ctx)
if (fd < 0)
err(1, "Creating gateway-privkey");
/* Skip \n at the end. */
if (!write_all(fd, value, strlen(value) - 1))
if (!write_all(fd, "P-", 2) || !write_all(fd, value, strlen(value) - 1))
err(1, "Writing gateway-privkey");
fsync(fd);
close(fd);
Expand Down

0 comments on commit f739337

Please sign in to comment.