mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-22 23:34:21 +01:00
Adjust indents
This commit is contained in:
committed by
Christian Decker
parent
0a586acf6e
commit
0733770559
@@ -2,7 +2,8 @@
|
||||
#include <lightningd/gossip_msg.h>
|
||||
#include <wire/wire.h>
|
||||
|
||||
struct gossip_getnodes_entry *fromwire_gossip_getnodes_entry(const tal_t *ctx, const u8 **pptr, size_t *max)
|
||||
struct gossip_getnodes_entry *fromwire_gossip_getnodes_entry(const tal_t *ctx,
|
||||
const u8 **pptr, size_t *max)
|
||||
{
|
||||
u8 numaddresses, i;
|
||||
struct gossip_getnodes_entry *entry;
|
||||
@@ -32,7 +33,8 @@ struct gossip_getnodes_entry *fromwire_gossip_getnodes_entry(const tal_t *ctx, c
|
||||
return entry;
|
||||
}
|
||||
|
||||
void towire_gossip_getnodes_entry(u8 **pptr, const struct gossip_getnodes_entry *entry)
|
||||
void towire_gossip_getnodes_entry(u8 **pptr,
|
||||
const struct gossip_getnodes_entry *entry)
|
||||
{
|
||||
u8 i, numaddresses = tal_count(entry->addresses);
|
||||
towire_pubkey(pptr, &entry->nodeid);
|
||||
@@ -83,8 +85,8 @@ void fromwire_gossip_getchannels_entry(const u8 **pptr, size_t *max,
|
||||
}
|
||||
}
|
||||
|
||||
void towire_gossip_getchannels_entry(
|
||||
u8 **pptr, const struct gossip_getchannels_entry *entry)
|
||||
void towire_gossip_getchannels_entry(u8 **pptr,
|
||||
const struct gossip_getchannels_entry *entry)
|
||||
{
|
||||
towire_short_channel_id(pptr, &entry->short_channel_id);
|
||||
towire_pubkey(pptr, &entry->source);
|
||||
|
||||
@@ -839,7 +839,7 @@ static void json_fund_channel(struct command *cmd,
|
||||
bool all_funds = false;
|
||||
struct funding_channel * fc;
|
||||
u32 feerate_per_kw = get_feerate(cmd->ld->topology, FEERATE_NORMAL);
|
||||
u64 fee_estimate;
|
||||
u64 fee_estimate;
|
||||
u8 *msg;
|
||||
|
||||
if (!json_get_params(cmd, buffer, params,
|
||||
@@ -856,7 +856,6 @@ static void json_fund_channel(struct command *cmd,
|
||||
|
||||
if (json_tok_streq(buffer, sattok, "all")) {
|
||||
all_funds = true;
|
||||
|
||||
} else if (!json_tok_u64(buffer, sattok, &fc->funding_satoshi)) {
|
||||
command_fail(cmd, "Invalid satoshis");
|
||||
return;
|
||||
@@ -873,7 +872,7 @@ static void json_fund_channel(struct command *cmd,
|
||||
|
||||
/* Try to do this now, so we know if insufficient funds. */
|
||||
/* FIXME: dustlimit */
|
||||
if (all_funds) {
|
||||
if (all_funds) {
|
||||
fc->utxomap = wallet_select_all(cmd, cmd->ld->wallet,
|
||||
feerate_per_kw,
|
||||
BITCOIN_SCRIPTPUBKEY_P2WSH_LEN,
|
||||
|
||||
Reference in New Issue
Block a user