user43935: Was wondering for a long why mempool.space was showing blocks greater than 1mb!
Started digging deeper and read these:

https://jimmysong.medium.com/understanding-segwit-block-size-fd901b87c9d4
https://jimmysong.medium.com/segwit2x-what-you-need-to-know-about-the-2mb-hard-fork-27749e1544ce

Able to understand the difference between block size and block weight.
Now few questions

To support the legacy nodes, the upgraded Segwit node will be checking the version of each peer. And if its a legacy node, a trimmed down version of the block will be sent to it. Right?
Is this stripping down of blocks happens on the fly? or both versions of the block are saved on the disk?

Thanks.

user208: 
To support the legacy nodes, the upgraded Segwit node will be checking the version of each peer. And if its a legacy node, a trimmed down version of the block will be sent to it. Right?

Right.

Is this stripping down of blocks happens on the fly? or both versions of the block are saved on the disk?

At least in Bitcoin Core, on the fly.

43935: <p>Was wondering for a long why mempool.space was showing blocks greater than 1mb!</p>
<p>Started digging deeper and read these:</p>
<ul>
<li><a href="https://jimmysong.medium.com/understanding-segwit-block-size-fd901b87c9d4" rel="nofollow noreferrer">https://jimmysong.medium.com/understanding-segwit-block-size-fd901b87c9d4</a></li>
<li><a href="https://jimmysong.medium.com/segwit2x-what-you-need-to-know-about-the-2mb-hard-fork-27749e1544ce" rel="nofollow noreferrer">https://jimmysong.medium.com/segwit2x-what-you-need-to-know-about-the-2mb-hard-fork-27749e1544ce</a></li>
</ul>
<p>Able to understand the difference between block size and block weight.</p>
<p>Now few questions</p>
<ul>
<li>To support the legacy nodes, the upgraded Segwit node will be checking the version of each peer. And if its a legacy node, a trimmed down version of the block will be sent to it. Right?</li>
<li>Is this stripping down of blocks happens on the fly? or both versions of the block are saved on the disk?</li>
</ul>
<p>Thanks.</p>
 208: <blockquote>
<p>To support the legacy nodes, the upgraded Segwit node will be checking the version of each peer. And if its a legacy node, a trimmed down version of the block will be sent to it. Right?</p>
</blockquote>
<p>Right.</p>
<blockquote>
<p>Is this stripping down of blocks happens on the fly? or both versions of the block are saved on the disk?</p>
</blockquote>
<p>At least in Bitcoin Core, on the fly.</p>
