<oembed><type>rich</type><version>1.0</version><author_name>npub1e46n428mcyfwznl7nlsf6d3s7rhlwm9x3cmkuqzt3emmdpadmkaqqjxmcu</author_name><author_url>https://nostr.ae/npub1e46n428mcyfwznl7nlsf6d3s7rhlwm9x3cmkuqzt3emmdpadmkaqqjxmcu</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2021-02-22&#xA;📝 Original message:Hmm, indeed, I may have missed that you can skip the headers issues by not persisting them, though there are other follow-on effects that are concerning and I think still make my point valid.&#xA;&#xA;A node feeding you invalid headers (used to be) cause for a ban - is that information still persisted? More importantly, nodes on both sides of the fork need to find each other. There’s not a great way to do that without forking the address database, DNS seeds and defining a new protocol magic.&#xA;&#xA;Matt&#xA;&#xA;&gt; On Feb 22, 2021, at 00:16, Anthony Towns &lt;aj at erisian.com.au&gt; wrote:&#xA;&gt; &#xA;&gt; ﻿On Fri, Feb 19, 2021 at 12:48:00PM -0500, Matt Corallo via bitcoin-dev wrote:&#xA;&gt;&gt; It was pointed out to me that this discussion is largely moot as the&#xA;&gt;&gt; software complexity for Bitcoin Core to ship an option like this is likely&#xA;&gt;&gt; not practical/what people would wish to see.&#xA;&gt;&gt; Bitcoin Core does not have infrastructure to handle switching consensus&#xA;&gt;&gt; rules with the same datadir - after running with uasf=true for some time,&#xA;&gt;&gt; valid blocks will be marked as invalid, &#xA;&gt; &#xA;&gt; I don&#39;t think this is true? With the current proposed bip8 code,&#xA;&gt; lockinontimeout=true will cause headers to be marked as invalid, and&#xA;&gt; won&#39;t process the block further. If a node running lockinontimeout=true&#xA;&gt; accepts the header, then it will apply the same consensus rules as a&#xA;&gt; lockinontimeout=false node.&#xA;&gt; &#xA;&gt; I don&#39;t think an invalid header will be added to the block index at all,&#xA;&gt; so a node restart should always cleanly allow it to be reconsidered.&#xA;&gt; &#xA;&gt; The test case in&#xA;&gt; &#xA;&gt; https://github.com/bitcoin/bitcoin/pull/19573/commits/bd8517135fc839c3332fea4d9c8373b94c8c9de8&#xA;&gt; &#xA;&gt; tests that a node that had rejected a chain due to lockinontimeout=true&#xA;&gt; will reorg to that chain after being restarted as a byproduct of the way&#xA;&gt; it tests different cases (the nodes set a new startheight, but retain&#xA;&gt; their lockinontimeout settings).&#xA;&gt; &#xA;&gt; &#xA;&gt; (I think with the current bip8 code, if you switch from&#xA;&gt; lockinontimeout=false to lockinontimeout=true and the tip of the current&#xA;&gt; most work chain is after the timeoutheight and did not lockin, then you&#xA;&gt; will continue following that chain until a taproot-invalid transaction&#xA;&gt; is inclued, rather than immediately reorging to a shorter chain that&#xA;&gt; complies with the lockinontimeout=true rules)&#xA;&gt; &#xA;&gt; Cheers,&#xA;&gt; aj&#xA;&gt;</html></oembed>