Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ This release is named by @Chand-ra.

### Added

- Protocol: we now pad all peer messages to make them the same length (excluding LND < v21 and current Eclair). ([#8893], [#9022])
- Config: `message-padding` option can be set to `false` to disable it for all peers. ([#9068])
- Protocol: peer message padding can make messages uniform length, but is disabled by default for compatibility. ([#8893], [#9022])
- Config: `message-padding=true` enables peer message padding for all peers. ([#9068])
- JSON-RPC: `bkpr-report` allows flexible summaries of bookkeeper income. ([#8937])
- Config: `bkpr-currency` option to record conversion rate at each bookkeeper event. ([#8937])
- JSON-RPC: `currencyconvert` and `currencyrate` via the new plugin `cln-currencyrate` ([#8842], [#8937])
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,8 @@ LOCAL_BOLTDIR=.tmp.lightningrfc
bolt-precheck:
@[ -d $(BOLTDIR) ] || exit 0; set -e; if [ -z "$(BOLTVERSION)" ]; then rm -rf $(LOCAL_BOLTDIR); ln -sf $(BOLTDIR) $(LOCAL_BOLTDIR); exit 0; fi; [ "$$(git -C $(LOCAL_BOLTDIR) rev-list --max-count=1 HEAD 2>/dev/null)" != "$(BOLTVERSION)" ] || exit 0; rm -rf $(LOCAL_BOLTDIR) && git clone -q $(BOLTDIR) $(LOCAL_BOLTDIR) && cd $(LOCAL_BOLTDIR) && git checkout -q $(BOLTVERSION)

PYSRC=$(shell git ls-files "*.py" | grep -v /text.py)
RUSTSRC=$(shell git ls-files "*.rs")
PYSRC=$(filter-out $(PYTHON_GENERATED),$(shell git ls-files "*.py" | grep -v /text.py))
RUSTSRC=$(filter-out $(CLN_GRPC_GENALL),$(shell git ls-files "*.rs"))

check-source-bolt: $(ALL_NONGEN_SRCFILES:%=bolt-check/%) $(PYSRC:%=bolt-check-py/%) $(RUSTSRC:%=bolt-check-rs/%)

Expand Down
6 changes: 3 additions & 3 deletions doc/lightningd-config.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -709,9 +709,9 @@ all DNS lookups, to avoid leaking information.

* **message-padding**=*BOOL*

Normally `connectd` will send extra bytes to peers to make messages
uniform length. Some implementations don't accept these extra bytes:
if we can't detect them, this option sets to `false` will disable it.
If `message-padding=true`, connectd will send extra bytes to peers to make
messages uniform length. This defaults to false because some deployed
implementations reject the no-reply pings used for padding.

* **tor-service-password**=*PASSWORD*

Expand Down
9 changes: 5 additions & 4 deletions lightningd/lightningd.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,11 @@ static struct lightningd *new_lightningd(const tal_t *ctx)

ld->fronting_nodes = tal_arr(ld, struct node_id, 0);

/*~ connectd usually uses "no-reply" pings to fill out messages
* where needed to make them uniform length. Some implementations
* don't like it, so it can be disabled. */
ld->message_padding = true;
/*~ connectd can use "no-reply" pings to fill out messages where needed
* to make them uniform length. Deployed implementations can reject those
* pings, so default to compatibility; operators can opt in with
* --message-padding=true. */
ld->message_padding = false;

return ld;
}
Expand Down
2 changes: 1 addition & 1 deletion lightningd/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -1671,7 +1671,7 @@ static void register_opts(struct lightningd *ld)
clnopt_witharg("--message-padding", OPT_SHOWBOOL,
opt_set_bool_arg, opt_show_bool,
&ld->message_padding,
"If true (the default), pad all messages to peers to make them equal length");
"If true, pad messages to peers to make them equal length (default: false)");

dev_register_opts(ld);
}
Expand Down
Loading