<p>BIP 144 equipped nodes doesn't fetch blocks from old nodes since they are only capable of providing witness stripped blocks.</p>

<p>If someone sent it a stripped block (e.g. by lying about their support or whatnot) and it contained any segwit using transactions then it would get dropped and the peer disconnected-- basically treated like merkle tree malleability.</p>

CC BY-SA 4.0
2018-10-21T19:41:44.187Z
2018-10-21T19:41:44.187Z
G. Maxwell
<p>My segwit node makes a <code>gettxout</code> RPC query and checks the <code>scriptPubKey.type</code> is <code>"witness_v0_keyhash"</code> and does things accordingly.  </p>

<p>To my understanding old nodes have different blocks and if I happened to fetch a block from an old node, what will my node do? Will it simply store it as is and ultimately result in not getting the desired <code>"witness_v0_keyhash"</code> response when I expect?</p>

<bitcoin-core><json-rpc><segregated-witness><witness-data>
Does my segwit node only have segwit blocks?
nopara73
# Does my segwit node only have segwit blocks?

(Asked by: username_0 on 2018-10-21)

My segwit node makes a `gettxout` RPC query and checks the `scriptPubKey.type` is `"witness_v0_keyhash"` and does things accordingly.

To my understanding old nodes have different blocks and if I happened to fetch a block from an old node, what will my node do? Will it simply store it as is and ultimately result in not getting the desired `"witness_v0_keyhash"` response when I expect?

**Tags:** bitcoin-core, json-rpc, segregated-witness, witness-data


---

## 1 answers

### Answer by username_1 on 2018-10-21. Score: 2 | Accepted answer

BIP 144 equipped nodes doesn't fetch blocks from old nodes since they are only capable of providing witness stripped blocks.

If someone sent it a stripped block (e.g. by lying about their support or whatnot) and it contained any segwit using transactions then it would get dropped and the peer disconnected-- basically treated like merkle tree malleability.


---

