<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.bitcoin.it/w/index.php?action=history&amp;feed=atom&amp;title=Fee_sniping</id>
	<title>Fee sniping - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://en.bitcoin.it/w/index.php?action=history&amp;feed=atom&amp;title=Fee_sniping"/>
	<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Fee_sniping&amp;action=history"/>
	<updated>2026-05-24T22:31:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Fee_sniping&amp;diff=68703&amp;oldid=prev</id>
		<title>Belcher: Add link to bitcoinops page about fee sniping</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Fee_sniping&amp;diff=68703&amp;oldid=prev"/>
		<updated>2021-06-16T18:29:50Z</updated>

		<summary type="html">&lt;p&gt;Add link to bitcoinops page about fee sniping&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:29, 16 June 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot;&gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The widespread use of [[NLockTime|nLockTime]] and [[NSequence|nSequence]] also provides a greater anonymity set for transactions which use these fields to implement [[Contract|smart contracts]].  For example if an observer of the [[blockchain|block chain]] sees a spend with an [[NSequence|nSequence]] value, then that could be either: a regular spend from a wallet, or the [[timelock]] branch of an [[Off-chain transactions|off-chain settlement transaction]]. The two cases would be indistinguishable, and this could greatly improve the [[privacy]] and [[fungibility]] of bitcoin.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The widespread use of [[NLockTime|nLockTime]] and [[NSequence|nSequence]] also provides a greater anonymity set for transactions which use these fields to implement [[Contract|smart contracts]].  For example if an observer of the [[blockchain|block chain]] sees a spend with an [[NSequence|nSequence]] value, then that could be either: a regular spend from a wallet, or the [[timelock]] branch of an [[Off-chain transactions|off-chain settlement transaction]]. The two cases would be indistinguishable, and this could greatly improve the [[privacy]] and [[fungibility]] of bitcoin.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== See Also ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* https://bitcoinops.org/en/topics/fee-sniping/&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==References==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==References==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Belcher</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Fee_sniping&amp;diff=68695&amp;oldid=prev</id>
		<title>Belcher: Reword and add link</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Fee_sniping&amp;diff=68695&amp;oldid=prev"/>
		<updated>2021-06-10T12:30:41Z</updated>

		<summary type="html">&lt;p&gt;Reword and add link&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:30, 10 June 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As of 2021 the subsidy is high enough, and transaction volume low enough, that fee sniping isn&amp;#039;t a problem yet, but by implementing a fix now we ensure code won&amp;#039;t be written that makes assumptions about [[NLockTime|nLockTime]] that preclude a fix later.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As of 2021 the subsidy is high enough, and transaction volume low enough, that fee sniping isn&amp;#039;t a problem yet, but by implementing a fix now we ensure code won&amp;#039;t be written that makes assumptions about [[NLockTime|nLockTime]] that preclude a fix later.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The widespread use of [[NLockTime|nLockTime]] and [[NSequence|nSequence]] also provides a greater anonymity set for transactions which use these fields to implement [[Contract|smart contracts]].  For example if an observer of the [[blockchain|block chain]] sees a spend with an [[NSequence|nSequence]] value, then that could be either: a regular spend from a wallet, or an off-chain settlement transaction &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;spent with a [[timelock&lt;/del&gt;]]. The two cases would be indistinguishable, and this could greatly improve the [[privacy]] and [[fungibility]] of bitcoin.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The widespread use of [[NLockTime|nLockTime]] and [[NSequence|nSequence]] also provides a greater anonymity set for transactions which use these fields to implement [[Contract|smart contracts]].  For example if an observer of the [[blockchain|block chain]] sees a spend with an [[NSequence|nSequence]] value, then that could be either: a regular spend from a wallet, or &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the [[timelock]] branch of &lt;/ins&gt;an &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Off-chain transactions|&lt;/ins&gt;off-chain settlement transaction]]. The two cases would be indistinguishable, and this could greatly improve the [[privacy]] and [[fungibility]] of bitcoin.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Belcher</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Fee_sniping&amp;diff=68694&amp;oldid=prev</id>
		<title>Belcher: Create page</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Fee_sniping&amp;diff=68694&amp;oldid=prev"/>
		<updated>2021-06-10T12:28:34Z</updated>

		<summary type="html">&lt;p&gt;Create page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Fee sniping&amp;#039;&amp;#039;&amp;#039; is a hypothetical outcome of bad incentives to bitcoin mining in the [[Controlled supply|low-inflation future]].&lt;br /&gt;
&lt;br /&gt;
For a large miner the value of the transactions in the best block and the mempool can be exceeded by the cost of deliberately attempting to mine two blocks to orphan the best block. However with anti-fee-sniping protection using [[NLockTime|nLockTime]] or [[NSequence|nSequence]] the bad miner will soon run out of transactions that can be put in the first block, which means they now need to go in the second. Anti-fee-sniping adds to the incentive to move the blockchain forward.&lt;br /&gt;
&lt;br /&gt;
The [[NLockTime|nLockTime]] field is being used this way today. It is implemented in [[Bitcoin Core]]&amp;lt;ref&amp;gt;https://github.com/bitcoin/bitcoin/pull/2340&amp;lt;/ref&amp;gt; and [[Electrum]]&amp;lt;ref&amp;gt;https://github.com/spesmilo/electrum/blob/7e6d65ec11c0dccfc24478471c5951d3ae586937/electrum/wallet.py#L211-L224&amp;lt;/ref&amp;gt;, and adopted by approximately 20% of all transactions&amp;lt;ref&amp;gt;https://p2sh.info/dashboard/db/blocks-statistics?panelId=4&amp;amp;fullscreen&amp;amp;orgId=1&amp;lt;/ref&amp;gt; as of 2021.&lt;br /&gt;
&lt;br /&gt;
As of 2021 the subsidy is high enough, and transaction volume low enough, that fee sniping isn&amp;#039;t a problem yet, but by implementing a fix now we ensure code won&amp;#039;t be written that makes assumptions about [[NLockTime|nLockTime]] that preclude a fix later.&lt;br /&gt;
&lt;br /&gt;
The widespread use of [[NLockTime|nLockTime]] and [[NSequence|nSequence]] also provides a greater anonymity set for transactions which use these fields to implement [[Contract|smart contracts]].  For example if an observer of the [[blockchain|block chain]] sees a spend with an [[NSequence|nSequence]] value, then that could be either: a regular spend from a wallet, or an off-chain settlement transaction spent with a [[timelock]]. The two cases would be indistinguishable, and this could greatly improve the [[privacy]] and [[fungibility]] of bitcoin.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
[[Category:Technical]]&lt;br /&gt;
[[Category:Mining]]&lt;/div&gt;</summary>
		<author><name>Belcher</name></author>
	</entry>
</feed>