Bitcoin Development Mailinglist
 help / color / mirror / Atom feed
From: Anthony Towns <aj@erisian.com.au>
To: Antoine Riard <antoine.riard@gmail.com>
Cc: Bitcoin Development Mailing List <bitcoindev@googlegroups.com>
Subject: Re: [bitcoindev] Re: [BIP Proposal] Peer Feature Negotiation
Date: Sun, 8 Mar 2026 22:13:58 +1000	[thread overview]
Message-ID: <aa1oBi2SzQPOhhNy@erisian.com.au> (raw)
In-Reply-To: <6783db94-fbbd-4df8-b05f-639fa3ace6f1n@googlegroups.com>

On Sun, Mar 01, 2026 at 10:06:20AM -0800, Antoine Riard wrote:
> I'm
> thinking that one drawback with the multiple feature / signaling messages
> approach compared to the fixed-size length verack payload comes with the
> novel feature messages becoming a novel if not a least a vector of
> denial-of-service, at least some vector of annoyance. One peer can always
> throw a number of `feature` message only bounded by the 80^2 information
> space of the `featureid` string length.

There's nothing stopping a peer from sending the same FEATURE message
multiple times prior to sending a VERACK, or sending the a FEATURE
message with the same featureid but different featuredata.

However these aren't a DoS concern, because such messages are either
expected to be ignored (if the featureid isn't recognised by the peer)
or can be rejected as invalid (if the featureid is recognised but isn't
in compliance with the feature's specification).

Sending a bunch of FEATURE messages that are immediately ignored is no
different from receiving a bunch of INV messages for txs you've already
seen, or sending any other payload that you expect the peer to ignore.

> I don't think there is an easy or obvious answer
> to this issue, other than introducing a verack negotiation timeout (with
> all the frictions of the lack of an easy to use coordinated clock among
> peers...). 

A VERACK timeout is a pretty normal thing to have -- eg `-peertimeout`
already exists and defaults to 60 seconds. It's not clever to waste a
connection slot on a peer that's delaying ever getting into the part
where you relay bitcoin information to each other.

> I do see the idea with that it's indeed allowing some form of
> interactive feature negotiation,

In my opinion, interactive feature negotiation (of the form "I'll only
tell you I support X if you first tell me you do/don't support Y")
is massively overcomplicating things, and essentially an anti-pattern.

> One last high level remark, I'm wondering if the protocol
> versioning shouldn't be "frozen" in itself,

There's no way to "freeze" development -- if BIP x says "you can't do
Y", then doing Y just means you aren't implementing BIP x; you're not
in any way inhibited from doing Y.

> - the BIP is silent on unknown messages received before `version`
> reception 

Messages received before `version` will generally already result in a
disconnect, as that's how nodes recognise they're talking to another
bitcoin node.

Cheers,
aj

-- 
You received this message because you are subscribed to the Google Groups "Bitcoin Development Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bitcoindev+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bitcoindev/aa1oBi2SzQPOhhNy%40erisian.com.au.


      reply	other threads:[~2026-03-08 12:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-19  9:13 [bitcoindev] " Anthony Towns
2026-03-01 18:06 ` [bitcoindev] " Antoine Riard
2026-03-08 12:13   ` Anthony Towns [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aa1oBi2SzQPOhhNy@erisian.com.au \
    --to=aj@erisian.com.au \
    --cc=antoine.riard@gmail.com \
    --cc=bitcoindev@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox