<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>

CC BY-SA 4.0
2022-02-02T18:53:57.667Z
2022-02-02T18:53:57.667Z
Pieter Wuille
<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>

<block><segregated-witness>
Segwit: Does the nodes saves 2 types of blocks (or atleast in the past)
saiy2k
# Segwit: Does the nodes saves 2 types of blocks (or atleast in the past)

(Asked by: username_0 on 2022-02-02)

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.

**Tags:** block, segregated-witness


---

## 1 answers

### Answer by username_1 on 2022-02-02. Score: 2 | Accepted answer

> 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.


---

