<oembed><type>rich</type><version>1.0</version><author_name>npub17rld56k4365lfphyd8u8kwuejey5xcazdxptserx03wc4jc9g24stx9l2h</author_name><author_url>https://nostr.ae/npub17rld56k4365lfphyd8u8kwuejey5xcazdxptserx03wc4jc9g24stx9l2h</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2021-02-22&#xA;📝 Original message:On Fri, Feb 19, 2021 at 12:48:00PM -0500, Matt Corallo via bitcoin-dev wrote:&#xA;&gt; It was pointed out to me that this discussion is largely moot as the&#xA;&gt; software complexity for Bitcoin Core to ship an option like this is likely&#xA;&gt; not practical/what people would wish to see.&#xA;&gt; Bitcoin Core does not have infrastructure to handle switching consensus&#xA;&gt; rules with the same datadir - after running with uasf=true for some time,&#xA;&gt; valid blocks will be marked as invalid, &#xA;&#xA;I don&#39;t think this is true? With the current proposed bip8 code,&#xA;lockinontimeout=true will cause headers to be marked as invalid, and&#xA;won&#39;t process the block further. If a node running lockinontimeout=true&#xA;accepts the header, then it will apply the same consensus rules as a&#xA;lockinontimeout=false node.&#xA;&#xA;I don&#39;t think an invalid header will be added to the block index at all,&#xA;so a node restart should always cleanly allow it to be reconsidered.&#xA;&#xA;The test case in&#xA;&#xA;https://github.com/bitcoin/bitcoin/pull/19573/commits/bd8517135fc839c3332fea4d9c8373b94c8c9de8&#xA;&#xA;tests that a node that had rejected a chain due to lockinontimeout=true&#xA;will reorg to that chain after being restarted as a byproduct of the way&#xA;it tests different cases (the nodes set a new startheight, but retain&#xA;their lockinontimeout settings).&#xA;&#xA;&#xA;(I think with the current bip8 code, if you switch from&#xA;lockinontimeout=false to lockinontimeout=true and the tip of the current&#xA;most work chain is after the timeoutheight and did not lockin, then you&#xA;will continue following that chain until a taproot-invalid transaction&#xA;is inclued, rather than immediately reorging to a shorter chain that&#xA;complies with the lockinontimeout=true rules)&#xA;&#xA;Cheers,&#xA;aj</html></oembed>