From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 19 Dec 2025 03:35:59 -0800 Received: from mail-oo1-f55.google.com ([209.85.161.55]) by mail.fairlystable.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1vWYm7-0001Ud-1D for bitcoindev@gnusha.org; Fri, 19 Dec 2025 03:35:59 -0800 Received: by mail-oo1-f55.google.com with SMTP id 006d021491bc7-65d0318e02esf2671418eaf.1 for ; Fri, 19 Dec 2025 03:35:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1766144153; cv=pass; d=google.com; s=arc-20240605; b=dq3SBSr8lIUcnXTC2MLWQeKFaCUblvXJo1T+sfHMepLv28PONnWOR4dKbx9fktU4cQ rS4sanhtpcdIr5kkkLN/Nq45XnvKk11eKzUyINgMUwZoKB0srnCONo8HIS95QQepIes8 oIuTvNHf+GqtIoL5wEjSniqAvH8t+6lFoqjQPPYUuXwZyCRrCU5/HZ41cmMHQVzQPUo8 iVUCuSITEXSiVYx4t9+2h5+KoUeFsLT8ebRuR4iXks1i3gz1UlWTaqnYpjW65b2Mr91o S0s7isUy+ENC9tTwVR9I2lYbzHPmqcpBT3YcQVMDpsXeVUD7LjDYFBWJDU+7tjG8xgiQ YIzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:content-disposition:mime-version :message-id:subject:to:from:date:sender:dkim-signature; bh=Ode+3wKLw+bbl9KKPhtLGAZhzth7umKYYEYp+BM8sOg=; fh=/Jq5IBXeBlLPZ3nA9tq9/PBFPSRXY/04q08qvGZZmeI=; b=c0UYqbjqn0+RYV6yKlinwRAchFGTK+U/i9ZvNVdNRL5WBv8ioseOkDg0yt39GWaaot hq7o2OVIZuXxNldUXVfPrKGNMzAtnttyK3FAbwCvfOOl6r7jjqSy1SgnuB/Sob24NDw/ NlhudSClDWclzEfbnWL4Byf8z+YYfFjO9K0JOaHOWENHV86hYZQ8KHHpcZYx6i+BUNj6 A+3DVbTlRchEC9W7SOQ/swFb9U5NZ0IziwLECbbHw33Ycki57iD6gmmG2InBY4qnF2Ih EQyFfIR7scE9UOb+YF3GrhaSa/NAE95D5YOO3ndRGSd/xzHCQPaG5jlyFOnmbOwQp+s5 I9zg==; darn=gnusha.org ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of aj@erisian.com.au designates 172.104.61.193 as permitted sender) smtp.mailfrom=aj@erisian.com.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1766144153; x=1766748953; darn=gnusha.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:content-disposition:mime-version:message-id :subject:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=Ode+3wKLw+bbl9KKPhtLGAZhzth7umKYYEYp+BM8sOg=; b=nJFNFctmkwfm+5pnzP2irp8gu6uIxEccdes91faNpfTLBq7wO1YwVVzvn1ZEMs1QfW 1+qORClsqzDk+k007QAMpBb6U7Es/O9s16i8ZcpCKka8ExXM3g7j1ieT2A+Abs5ntqUT j31yu8esizZDiRa70dOR9OWdMRBXMALDvn95/TEzLS7E+1upBCOjdATXbwZAjKQHzTWc HW5+0A0AVY4tkTojrwahEKK28gE2v8yTIlmTrHItcBm5uByQ/UM/CiMz+gNUcYKxGiMi 1CAR5MTnc4xOq94YHpkxG2QYf8CmXMBmY6B+Zi59qqryilREpJhYIonc40Ffri1SmSLS t84A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766144153; x=1766748953; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:content-disposition:mime-version:message-id :subject:to:from:date:x-beenthere:x-gm-message-state:sender:from:to :cc:subject:date:message-id:reply-to; bh=Ode+3wKLw+bbl9KKPhtLGAZhzth7umKYYEYp+BM8sOg=; b=gAMni0P6EEQLusaJjKEVQDchVuKNtdf1eW4iMAuAh0ibRJPUcIiKZi2U8cXBK1B2aH BpYRgI1O78uHppOmBqrqZAGMMIaxJFPe79CJt5imXT3MOgzsWdpWIpmhZsdMl0m4h0HN J9SLymOhXJuCledKZuu8EFYgUFeWOrzD6yXsDF2fWLQm3ITlJT/+fLpAS0TkRoPS2QTc Wt6SWNrcxm0ZVmZ3ftJ1AAqud0E5sP7k8wasCxob+wH4GMSdpHCU6gV0mF2D5T5I1toM 09tvruO8g+ltMVW22DwH7O9GsiVSroF6sLg6q6xQLkDSnkzQ5pOPhCjWefe6UfQLx7yt 0afQ== Sender: bitcoindev@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCXslysp1qJiblz9CdKkPaRk5NQAQX7mkDUo/r7LyPKjrBaWQ8mI6xSmfyKWIaKNXMpQNRQVGUUVfkq2@gnusha.org X-Gm-Message-State: AOJu0Yyb3Z19wD4Bffyr1S4JfShCf6aVpnEAiMYBL0/uq2H09rcOKEQd reaiPahAFcNy2HzQgCYK+LZkDQ2d5cR9zOuFGjm12WRhVe3YTvUAxPh6 X-Google-Smtp-Source: AGHT+IFayudTwITdKcqqBXCDVTD3QY1d8/siHVFWCHciK43RRoVUPRkVjlIgGqO//fVXsvmw6spshA== X-Received: by 2002:a05:6820:228f:b0:65c:ffb8:436 with SMTP id 006d021491bc7-65d0ea99cd3mr1186503eaf.38.1766144152472; Fri, 19 Dec 2025 03:35:52 -0800 (PST) X-BeenThere: bitcoindev@googlegroups.com; h="AWVwgWZP/I87QvzVvDhdbkuCGLfbD+lcZguyzXgG8dlNS0cvmQ==" Received: by 2002:a05:6871:d689:10b0:3ec:7947:3f27 with SMTP id 586e51a60fabf-3f5f83b937fls4062035fac.0.-pod-prod-01-us; Fri, 19 Dec 2025 03:35:48 -0800 (PST) X-Received: by 2002:a05:6808:c115:b0:455:d3f2:4bf9 with SMTP id 5614622812f47-457b202d41amr1248983b6e.30.1766144148861; Fri, 19 Dec 2025 03:35:48 -0800 (PST) Received: by 2002:a05:620a:60e2:b0:8b2:e00e:5a07 with SMTP id af79cd13be357-8beed392792ms85a; Fri, 19 Dec 2025 01:13:26 -0800 (PST) X-Received: by 2002:a05:6214:4284:b0:888:4930:7981 with SMTP id 6a1803df08f44-88d86e4876cmr35442696d6.69.1766135605790; Fri, 19 Dec 2025 01:13:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1766135605; cv=none; d=google.com; s=arc-20240605; b=Jyp50mrxKJ4WZ3+ZP3FPHV/ODrFhCA5ki9jHsrJsg/uPa/3fjlS/zfx/RgUKjrNJ0Z oNnv97xkNwkkG5IK8ZBq19kUGHdymHQ+/f10W1rW4plvSBmP+eeVdpFC6/a5llAhXgIk SKX90PhrluNaSfdsOB2xuEn8AfWyi00pdrNUOOxfbLzCOg1FWWUoMOLoVuqjMjhzJnQT 9LH61vhr5tnnhZhagGesZTxheeWQOBDsy3Js3sfz5fraViMC+E0ylb0WHkSYwhG7nkbB WCqbXOHMuUW4v3q6ZNS3Y2ndu7+WXb1zMLEkMuNrZl751e0fi62SzbwDNbnVSfzACfY1 brgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-disposition:mime-version:message-id:subject:to:from:date; bh=WTtRWOupdPq2Pz5LwFHPhCqSYQG51QjeQu3G7UvXT5Q=; fh=VcGcg+Zjs9gw1uDcHbxsAILhBAcecnbJzZRdxgKVDIc=; b=I/XT/1w3zgUo9WIKvAH82TkjG5Xkzd2xBpABY95/YVUI9v6slCYP8YoG3QHv74MxM6 4NWg2hCnh20wHyLd+0bsQdABxQXPTiWwKk8t6zR1YBdiw+bWkoEnQjDgZiTSWRc5/0vY 0AMDRy5gWTqQc+D8iIin4j2BOKFQYeLUYqwutKPF+dj+wLYYIdOpXVHwtcRbPJDcWMiR Jcd9rsXOt+S63akHc7CO4+kI8w345Bk/9pJn1ghlr9ogRKvYBvBd5NYe2N19qKWPzkns /Uv77tqnv+a0KDq1GHbCMI5TSMkbPf1X4+LbdBqtVLM0XzKz6tzna9hmKJ9GH6ijGx6J 22BA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of aj@erisian.com.au designates 172.104.61.193 as permitted sender) smtp.mailfrom=aj@erisian.com.au Received: from cerulean.erisian.com.au (azure.erisian.com.au. [172.104.61.193]) by gmr-mx.google.com with ESMTPS id 6a1803df08f44-88d926f2eccsi681726d6.0.2025.12.19.01.13.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Dec 2025 01:13:25 -0800 (PST) Received-SPF: pass (google.com: domain of aj@erisian.com.au designates 172.104.61.193 as permitted sender) client-ip=172.104.61.193; Received: from aj@azure.erisian.com.au by cerulean.erisian.com.au with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vWWXr-0000Ro-1i for bitcoindev@googlegroups.com; Fri, 19 Dec 2025 19:13:23 +1000 Received: by email (sSMTP sendmail emulation); Fri, 19 Dec 2025 19:13:18 +1000 Date: Fri, 19 Dec 2025 19:13:18 +1000 From: Anthony Towns To: bitcoindev@googlegroups.com Subject: [bitcoindev] [BIP Proposal] Peer Feature Negotiation Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline X-Spam_score: -0.0 X-Spam_bar: / X-Original-Sender: aj@erisian.com.au X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of aj@erisian.com.au designates 172.104.61.193 as permitted sender) smtp.mailfrom=aj@erisian.com.au Precedence: list Mailing-list: list bitcoindev@googlegroups.com; contact bitcoindev+owners@googlegroups.com List-ID: X-Google-Group-Id: 786775582512 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Score: -0.8 (/) Hello world, I've been thinking recently about a few ideas that would benefit from new p2p messages, namely template sharing [0], updating the bip324-one-byte-message-types [1], and sharing recent stale blocks [2]. That's made me want to make sure that we've got a good way of negotiating new features, and revisiting the ideas from the 2020 thread [3] has me still liking the "FEATURE" message idea [4]. As such, and with Ava's recent exhortation that everyone should be writing BIPs [5] in mind, I've written a BIP: https://github.com/ajtowns/bips/blob/202512-p2p-feature/bip-peer-feature-negotiation.md Sample code, though that part isn't really very interesting: https://github.com/ajtowns/bitcoin/commit/80301f0040fe6048a85b89d0fdf0ffcca836a1d0 The BIP is perhaps a bit over-engineered at this point for what it does, but I figure better to be over-engineered than under-. And in any event, there was some degree of breakage with the SENDADDRV2's deployment [6,7] which would be good to avoid repeating. In any event, the BIP text has a bunch more background, etc. Comments welcome. Cheers, aj [0] https://github.com/bitcoin/bitcoin/issues/33691 [1] https://github.com/bitcoin/bips/pull/1378#discussion_r2585766526 [2] https://github.com/bitcoin-data/stale-blocks The idea behind sharing stale blocks (or headers) more proactively, is it better insight into the orphan rate, and whether hashrate is extending the chain vs potentially creating a reorg; and also potentially makes syncing to the new tip after a reorgs more efficient, as you'll have already downloaded the parent of the new tip [3] https://gnusha.org/pi/bitcoindev/CAFp6fsE=HPFUMFhyuZkroBO_QJ-dUWNJqCPg9=fMJ3Jqnu1hnw@mail.gmail.com/ [4] https://gnusha.org/pi/bitcoindev/20200821023647.7eat4goqqrtaqnna@erisian.com.au/ [5] https://x.com/btcplusplus/status/2000489894515253529 [6] https://github.com/btcsuite/btcd/issues/1661 [7] https://github.com/bitcoin/bitcoin/pull/20564 -- 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/aUUXLgEUCgGb122o%40erisian.com.au.