mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-23 06:54:30 +01:00
Use localfeatures and globalfeatures consistently.
That's what BOLT #1 calls them; make it easier for people to grep. Reported-by: @niftynei Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -108,15 +108,15 @@ static struct io_plan *handshake_success(struct io_conn *conn,
|
||||
{
|
||||
u8 *msg;
|
||||
struct crypto_state cs = *orig_cs;
|
||||
u8 *local_features;
|
||||
u8 *localfeatures;
|
||||
|
||||
if (initial_sync) {
|
||||
local_features = tal(conn, u8);
|
||||
local_features[0] = (1 << 3);
|
||||
localfeatures = tal(conn, u8);
|
||||
localfeatures[0] = (1 << 3);
|
||||
} else
|
||||
local_features = NULL;
|
||||
localfeatures = NULL;
|
||||
|
||||
msg = towire_init(NULL, NULL, local_features);
|
||||
msg = towire_init(NULL, NULL, localfeatures);
|
||||
|
||||
sync_crypto_write(&cs, conn->fd, take(msg));
|
||||
/* Ignore their init message. */
|
||||
|
||||
Reference in New Issue
Block a user