<?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=Block_weight</id>
	<title>Block weight - 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=Block_weight"/>
	<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Block_weight&amp;action=history"/>
	<updated>2026-05-08T17:59:11Z</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=Block_weight&amp;diff=64833&amp;oldid=prev</id>
		<title>Harding: Redirect to Weight units, to which most of the content has been moved with a more detailed introduction.  Some content moved to Segregated Witness instead.  Only intro sentence was not moved somewhere.</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Block_weight&amp;diff=64833&amp;oldid=prev"/>
		<updated>2018-01-17T19:25:58Z</updated>

		<summary type="html">&lt;p&gt;Redirect to &lt;a href=&quot;/wiki/Weight_units&quot; title=&quot;Weight units&quot;&gt;Weight units&lt;/a&gt;, to which most of the content has been moved with a more detailed introduction.  Some content moved to &lt;a href=&quot;/wiki/Segregated_Witness&quot; title=&quot;Segregated Witness&quot;&gt;Segregated Witness&lt;/a&gt; instead.  Only intro sentence was not moved somewhere.&lt;/p&gt;
&lt;a href=&quot;https://en.bitcoin.it/w/index.php?title=Block_weight&amp;amp;diff=64833&amp;amp;oldid=63874&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Harding</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Block_weight&amp;diff=63874&amp;oldid=prev</id>
		<title>Theymos at 05:31, 23 August 2017</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Block_weight&amp;diff=63874&amp;oldid=prev"/>
		<updated>2017-08-23T05:31:20Z</updated>

		<summary type="html">&lt;p&gt;&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 05:31, 23 August 2017&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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;Prior to [[SegWit]], there was a max block size of 1MB. After SegWit, the concept of max block size was removed and replaced with &amp;#039;&amp;#039;max block weight&amp;#039;&amp;#039;. The current max block weight is 4MB.&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;Prior to [[SegWit]], there was a max block size of 1MB. After SegWit, the concept of max block size was removed and replaced with &amp;#039;&amp;#039;max block weight&amp;#039;&amp;#039;. The current max block weight is 4MB.&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;&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;===Summary: &quot;How do I get cheaper transactions?&quot;===&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;&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;To get cheaper transactions, you have to:&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;&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;# Install a SegWit-supporting wallet.&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;# Receive money on new SegWit addresses, which start with 3. You must generate new addresses; your old addresses will never be SegWit addresses. Note that not all addresses starting with 3 are SegWit addresses, and it is impossible to tell just from looking at an address whether it is a SegWit address.&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;# Whenever you &#039;&#039;spend BTC which you have received via SegWit addresses&#039;&#039;, you will receive the SegWit discount. If you send a transaction spending some BTC received via non-SegWit addresses and some BTC received via SegWit addresses, you will receive a partial discount. The destination address doesn&#039;t matter.&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;&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;There are no compatibility issues: non-SegWit wallets can send BTC to SegWit addresses, and SegWit wallets can send BTC to non-SegWit addresses.&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;===Definition of block weight===&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;===Definition of block weight===&lt;/div&gt;&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-l5&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 15:&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;Normally, each byte in a transaction counts as 4 bytes of block weight. However, if a byte is part of the SegWit witness area, then it receives a &amp;#039;&amp;#039;discount&amp;#039;&amp;#039;, and only counts as 1 byte of block weight.&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;Normally, each byte in a transaction counts as 4 bytes of block weight. However, if a byte is part of the SegWit witness area, then it receives a &amp;#039;&amp;#039;discount&amp;#039;&amp;#039;, and only counts as 1 byte of block weight.&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;For example, let&#039;s say that you&#039;ve previously received &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;0.5 &lt;/del&gt;BTC to SegWit address A, and &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;0.5 &lt;/del&gt;BTC to legacy address B. Now consider a transaction sending both of these amounts to some address C. The data unrelated to the transaction inputs are always non-witness data counted as 4 bytes/byte. In particular, address C doesn&#039;t matter, and can be SegWit, non-SegWit, or anything. The &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;input &lt;/del&gt;data related to address A will, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;except for a constant amount of overhead, &lt;/del&gt;be &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;witness data &lt;/del&gt;counted as 1 byte/byte. The &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;input &lt;/del&gt;data related to address B is non-SegWit, and so will be counted as 4 bytes/byte. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;When we say &lt;/del&gt;&quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;input &lt;/del&gt;data&quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, we primarily mean &lt;/del&gt;the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;signatures and public keys &lt;/del&gt;in &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the &lt;/del&gt;[[Transactions|scriptSig]].&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;For example, let&#039;s say that you&#039;ve previously received &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;some &lt;/ins&gt;BTC to SegWit address A, and &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;some &lt;/ins&gt;BTC to legacy address B. Now consider a transaction sending both of these amounts to some address C. The data unrelated to the transaction inputs are always non-witness data counted as 4 bytes/byte. In particular, address C doesn&#039;t matter, and can be SegWit, non-SegWit, or anything. The &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;witness &lt;/ins&gt;data related to address A will &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;go in the SegWit witness area&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;and will be &lt;/ins&gt;be counted as 1 byte/byte. The &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;witness &lt;/ins&gt;data related to address B is non-SegWit, and so will be counted as 4 bytes/byte.&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;/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;&quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Witness &lt;/ins&gt;data&quot; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;is more-or-less &lt;/ins&gt;the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;data that would go &lt;/ins&gt;in &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a legacy transaction&#039;s &lt;/ins&gt;[[Transactions|scriptSig]].&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;===Conversion to real sizes===&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;===Conversion to real sizes===&lt;/div&gt;&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-l11&quot;&gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 23:&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;It is a common misconception that SegWit somehow makes transactions smaller, but this is incorrect. A 300-byte transaction is 300 bytes on-disk and on-wire. SegWit just &amp;#039;&amp;#039;counts&amp;#039;&amp;#039; those bytes differently toward the 4MB weight limit.&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;It is a common misconception that SegWit somehow makes transactions smaller, but this is incorrect. A 300-byte transaction is 300 bytes on-disk and on-wire. SegWit just &amp;#039;&amp;#039;counts&amp;#039;&amp;#039; those bytes differently toward the 4MB weight limit.&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 maximum size of a block is nearly equal to the max block weight, so currently 4MB. This is not somehow &quot;made-up&quot; size; the maximum block is &#039;&#039;&#039;really&#039;&#039;&#039; 4MB on-disk and on-wire. However, this maximum should not usually be &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;reached&lt;/del&gt;.&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 maximum size of a block is nearly equal to the max block weight, so currently 4MB. This is not somehow &quot;made-up&quot; size; the maximum block is &#039;&#039;&#039;really&#039;&#039;&#039; 4MB on-disk and on-wire. However, this maximum &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;can only be reached if the block is full of very weird transactions, so it &lt;/ins&gt;should not usually be &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;seen&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;The &amp;#039;&amp;#039;typical&amp;#039;&amp;#039; size of a block depends on the make-up of transactions in that block. As of 2017, the average transaction make-up would lead to about 2.3MB typical blocks if all transactions were SegWit transactions.&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 &amp;#039;&amp;#039;typical&amp;#039;&amp;#039; size of a block depends on the make-up of transactions in that block. As of 2017, the average transaction make-up would lead to about 2.3MB typical blocks if all transactions were SegWit transactions.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key db_bitcoin_en:diff:1.41:old-63873:rev-63874:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Theymos</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Block_weight&amp;diff=63873&amp;oldid=prev</id>
		<title>Theymos: /* Detailed example */</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Block_weight&amp;diff=63873&amp;oldid=prev"/>
		<updated>2017-08-23T05:11:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Detailed example&lt;/span&gt;&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 05:11, 23 August 2017&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-l172&quot;&gt;Line 172:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 172:&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 transaction&amp;#039;s &amp;#039;&amp;#039;&amp;#039;real size on disk and over the network&amp;#039;&amp;#039;&amp;#039; is 218 bytes, the size in bytes of the whole transaction expressed above in hexadecimal. The weight is always greater than the real size, in this case 542 bytes.&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 transaction&amp;#039;s &amp;#039;&amp;#039;&amp;#039;real size on disk and over the network&amp;#039;&amp;#039;&amp;#039; is 218 bytes, the size in bytes of the whole transaction expressed above in hexadecimal. The weight is always greater than the real size, in this case 542 bytes.&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;It is not possible to create exactly-equivalent legacy transactions for SegWit transactions. If BTC is sent to a SegWit address, then it must be spent in a SegWit input. However, for comparison, a similar 1-input, 1-output legacy transaction would be about 191 bytes. The legacy transaction would consume 0.0191% of a 1MB legacy block, while this transaction consumes 0.0136% of a SegWit block, a reduction of 34%.&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;It is not possible to create exactly-equivalent legacy transactions for SegWit transactions. If BTC is sent to a SegWit address, then it must be spent in a SegWit input. However, for comparison, a similar 1-input, 1-output legacy transaction would be about 191 bytes. The legacy transaction would consume 0.0191% of a 1MB legacy block, while this transaction consumes 0.0136% of a SegWit block, a reduction of 34%&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. Different transaction types can have much greater reductions&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;You may notice that the transaction size has increased a little -- 218 bytes vs 191 bytes -- but most/all of the overhead is redundant data which could be removed. For example, if you have the witness, then you can compute the 23-byte P2SH script. If necessary, this data could be removed before transmitting the transactions: this would be a change to the P2P protocol which wouldn&amp;#039;t even require a softfork.&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;You may notice that the transaction size has increased a little -- 218 bytes vs 191 bytes -- but most/all of the overhead is redundant data which could be removed. For example, if you have the witness, then you can compute the 23-byte P2SH script. If necessary, this data could be removed before transmitting the transactions: this would be a change to the P2P protocol which wouldn&amp;#039;t even require a softfork.&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;[[Category:Technical]]&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;[[Category:Technical]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key db_bitcoin_en:diff:1.41:old-63872:rev-63873:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Theymos</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Block_weight&amp;diff=63872&amp;oldid=prev</id>
		<title>Theymos: Created page with &quot;Prior to SegWit, there was a max block size of 1MB. After SegWit, the concept of max block size was removed and replaced with &#039;&#039;max block weight&#039;&#039;. The current max block w...&quot;</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Block_weight&amp;diff=63872&amp;oldid=prev"/>
		<updated>2017-08-23T04:58:43Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Prior to &lt;a href=&quot;/wiki/SegWit&quot; class=&quot;mw-redirect&quot; title=&quot;SegWit&quot;&gt;SegWit&lt;/a&gt;, there was a max block size of 1MB. After SegWit, the concept of max block size was removed and replaced with &amp;#039;&amp;#039;max block weight&amp;#039;&amp;#039;. The current max block w...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Prior to [[SegWit]], there was a max block size of 1MB. After SegWit, the concept of max block size was removed and replaced with &amp;#039;&amp;#039;max block weight&amp;#039;&amp;#039;. The current max block weight is 4MB.&lt;br /&gt;
&lt;br /&gt;
===Definition of block weight===&lt;br /&gt;
&lt;br /&gt;
Normally, each byte in a transaction counts as 4 bytes of block weight. However, if a byte is part of the SegWit witness area, then it receives a &amp;#039;&amp;#039;discount&amp;#039;&amp;#039;, and only counts as 1 byte of block weight.&lt;br /&gt;
&lt;br /&gt;
For example, let&amp;#039;s say that you&amp;#039;ve previously received 0.5 BTC to SegWit address A, and 0.5 BTC to legacy address B. Now consider a transaction sending both of these amounts to some address C. The data unrelated to the transaction inputs are always non-witness data counted as 4 bytes/byte. In particular, address C doesn&amp;#039;t matter, and can be SegWit, non-SegWit, or anything. The input data related to address A will, except for a constant amount of overhead, be witness data counted as 1 byte/byte. The input data related to address B is non-SegWit, and so will be counted as 4 bytes/byte. When we say &amp;quot;input data&amp;quot;, we primarily mean the signatures and public keys in the [[Transactions|scriptSig]].&lt;br /&gt;
&lt;br /&gt;
===Conversion to real sizes===&lt;br /&gt;
&lt;br /&gt;
It is a common misconception that SegWit somehow makes transactions smaller, but this is incorrect. A 300-byte transaction is 300 bytes on-disk and on-wire. SegWit just &amp;#039;&amp;#039;counts&amp;#039;&amp;#039; those bytes differently toward the 4MB weight limit.&lt;br /&gt;
&lt;br /&gt;
The maximum size of a block is nearly equal to the max block weight, so currently 4MB. This is not somehow &amp;quot;made-up&amp;quot; size; the maximum block is &amp;#039;&amp;#039;&amp;#039;really&amp;#039;&amp;#039;&amp;#039; 4MB on-disk and on-wire. However, this maximum should not usually be reached.&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;typical&amp;#039;&amp;#039; size of a block depends on the make-up of transactions in that block. As of 2017, the average transaction make-up would lead to about 2.3MB typical blocks if all transactions were SegWit transactions.&lt;br /&gt;
&lt;br /&gt;
===Detailed example===&lt;br /&gt;
&lt;br /&gt;
Consider this transaction:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;0100000000010115e180dc28a2327e687facc33f10f2a20da717e5548406f7ae8b4c8&lt;br /&gt;
11072f85603000000171600141d7cd6c75c2e86f4cbf98eaed221b30bd9a0b928ffff&lt;br /&gt;
ffff019caef505000000001976a9141d7cd6c75c2e86f4cbf98eaed221b30bd9a0b92&lt;br /&gt;
888ac02483045022100f764287d3e99b1474da9bec7f7ed236d6c81e793b20c4b5aa1&lt;br /&gt;
f3051b9a7daa63022016a198031d5554dbb855bdbe8534776a4be6958bd8d530dc001&lt;br /&gt;
c32b828f6f0ab0121038262a6c6cec93c2d3ecd6c6072efea86d02ff8e3328bbd0242&lt;br /&gt;
b20af3425990ac00000000&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
! Data&lt;br /&gt;
! Description&lt;br /&gt;
! Raw byte count&lt;br /&gt;
! Type (multiplier)&lt;br /&gt;
! Section total weight&lt;br /&gt;
! Running total weight&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;01000000&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Version 1&lt;br /&gt;
| 4&lt;br /&gt;
| Non-witness (4x)&lt;br /&gt;
| 16&lt;br /&gt;
| 16&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;00&amp;lt;/tt&amp;gt;&lt;br /&gt;
| SegWit marker&lt;br /&gt;
| 1&lt;br /&gt;
| Witness (1x)&lt;br /&gt;
| 1&lt;br /&gt;
| 17&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;01&amp;lt;/tt&amp;gt;&lt;br /&gt;
| SegWit flag&lt;br /&gt;
| 1&lt;br /&gt;
| Witness (1x)&lt;br /&gt;
| 1&lt;br /&gt;
| 18&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;01&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Number of inputs (1)&lt;br /&gt;
| 1&lt;br /&gt;
| Non-witness (4x)&lt;br /&gt;
| 4&lt;br /&gt;
| 22&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;15..56&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Previous output hash&lt;br /&gt;
| 32&lt;br /&gt;
| Non-witness (4x)&lt;br /&gt;
| 128&lt;br /&gt;
| 150&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;03000000&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Previous output index (3)&lt;br /&gt;
| 4&lt;br /&gt;
| Non-witness (4x)&lt;br /&gt;
| 16&lt;br /&gt;
| 166&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;17&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Script length (23 bytes)&lt;br /&gt;
| 1&lt;br /&gt;
| Non-witness (4x)&lt;br /&gt;
| 4&lt;br /&gt;
| 170&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;16..28&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Script: P2SH-enclosed P2WPKH witness program&lt;br /&gt;
| 23&lt;br /&gt;
| Non-witness (4x)&lt;br /&gt;
| 92&lt;br /&gt;
| 262&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;ffffffff&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Sequence&lt;br /&gt;
| 4&lt;br /&gt;
| Non-witness (4x)&lt;br /&gt;
| 16&lt;br /&gt;
| 278&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;01&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Output count (1)&lt;br /&gt;
| 1&lt;br /&gt;
| Non-witness (4x)&lt;br /&gt;
| 4&lt;br /&gt;
| 282&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;9caef50500000000&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Output value (0.99987100 BTC)&lt;br /&gt;
| 8&lt;br /&gt;
| Non-witness (4x)&lt;br /&gt;
| 32&lt;br /&gt;
| 314&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;19&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Output script size (25)&lt;br /&gt;
| 1&lt;br /&gt;
| Non-witness (4x)&lt;br /&gt;
| 4&lt;br /&gt;
| 318&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;76..ac&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Script: DUP HASH160 0x1d7c... EQUALVERIFY CHECKSIG&lt;br /&gt;
| 25&lt;br /&gt;
| Non-witness (4x)&lt;br /&gt;
| 100&lt;br /&gt;
| 418&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;02&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Number of stack items for input 0 (2)&lt;br /&gt;
| 1&lt;br /&gt;
| Witness (1x)&lt;br /&gt;
| 1&lt;br /&gt;
| 419&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;48&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Size of stack item 0 (72)&lt;br /&gt;
| 1&lt;br /&gt;
| Witness (1x)&lt;br /&gt;
| 1&lt;br /&gt;
| 420&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;304...ab01&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Stack item 0, signature&lt;br /&gt;
| 72&lt;br /&gt;
| Witness (1x)&lt;br /&gt;
| 72&lt;br /&gt;
| 492&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;21&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Size of stack item 1 (33)&lt;br /&gt;
| 1&lt;br /&gt;
| Witness (1x)&lt;br /&gt;
| 1&lt;br /&gt;
| 493&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;03..ac&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Stack item 1, pubkey&lt;br /&gt;
| 33&lt;br /&gt;
| Witness (1x)&lt;br /&gt;
| 33&lt;br /&gt;
| 526&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;00000000&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Locktime (0)&lt;br /&gt;
| 4&lt;br /&gt;
| Non-witness (4x)&lt;br /&gt;
| 16&lt;br /&gt;
| 542&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The transaction&amp;#039;s &amp;#039;&amp;#039;&amp;#039;real size on disk and over the network&amp;#039;&amp;#039;&amp;#039; is 218 bytes, the size in bytes of the whole transaction expressed above in hexadecimal. The weight is always greater than the real size, in this case 542 bytes.&lt;br /&gt;
&lt;br /&gt;
It is not possible to create exactly-equivalent legacy transactions for SegWit transactions. If BTC is sent to a SegWit address, then it must be spent in a SegWit input. However, for comparison, a similar 1-input, 1-output legacy transaction would be about 191 bytes. The legacy transaction would consume 0.0191% of a 1MB legacy block, while this transaction consumes 0.0136% of a SegWit block, a reduction of 34%.&lt;br /&gt;
&lt;br /&gt;
You may notice that the transaction size has increased a little -- 218 bytes vs 191 bytes -- but most/all of the overhead is redundant data which could be removed. For example, if you have the witness, then you can compute the 23-byte P2SH script. If necessary, this data could be removed before transmitting the transactions: this would be a change to the P2P protocol which wouldn&amp;#039;t even require a softfork.&lt;br /&gt;
&lt;br /&gt;
[[Category:Technical]]&lt;/div&gt;</summary>
		<author><name>Theymos</name></author>
	</entry>
</feed>