<p>I've looked through several pages on bitnodes to find some more nodes that show <code>NODE_WITNESS (12)</code>. I've noticed a pattern: the number corresponds to the services that a node offers. Nodes advertise the services that they offer by sending a bitmap named <code>nServices</code>. The number in the brackets matches the decimal representation of the service bits that a node has set.</p>
<p>Looking around a bit, I've identified the following five bits:</p>
<ul>
<li><code>NODE_NETWORK (1)</code></li>
<li><code>NODE_GETUTXO (2)</code></li>
<li><code>NODE_BLOOM (4)</code></li>
<li><code>NODE_WITNESS (8)</code></li>
<li><code>NODE_XTHIN (16)</code>, discontinued</li>
<li><code>NODE_COMPACT_FILTERS  (64)</code></li>
<li><code>NODE_NETWORK_LIMITED (1024)</code></li>
</ul>
<p>So, I'd say that with (12), you must be offering the services <code>NODE_BLOOM, NODE_WITNESS (12)</code>, lemme guess, you run a pruning node? :) Or would it be &quot;blocksonly&quot;?</p>
<hr />
<p>Edit: Here are the service bits defined in the source code: <a href="https://github.com/bitcoin/bitcoin/blob/a9f642870849dcbfe32632fd6614804be61ab40c/src/protocol.h#L271" rel="nofollow noreferrer"><code>protocol.h:271</code></a>. And here is an overview in the Bitcoin Wiki page for <a href="https://en.bitcoin.it/wiki/Protocol_documentation#version" rel="nofollow noreferrer">protocol documentation</a>.</p>

CC BY-SA 3.0
2017-04-07T02:08:00.407Z
Yes, I'm running a pruning node!
Vinicius Sa
CC BY-SA 4.0
2017-04-06T20:11:05.550Z
2021-10-21T17:47:54.473Z
2021-10-21T17:47:54.473Z
Murch
<p>I'm running a pruned full node of bitcoin core version 0.14.0 and checking on <a href="https://bitnodes.21.co/nodes/" rel="nofollow noreferrer">https://bitnodes.21.co/nodes/</a> I can see that my node was labelled "NODE_WITNESS (12)" unlike of the others nodes shown, which was labelled "NODE_WITNESS (13)".</p>

<bitcoin-core><segregated-witness><pruning><node-services><bitnodes>
What does "NODE_WITNESS (12)" mean as it is shown in bitnodes.21.co?
Vinicius Sa
# What does "NODE_WITNESS (12)" mean as it is shown in bitnodes.21.co?

(Asked by: username_0 on 2017-04-06)

I'm running a pruned full node of bitcoin core version 0.14.0 and checking on <https://bitnodes.21.co/nodes/> I can see that my node was labelled "NODE\_WITNESS (12)" unlike of the others nodes shown, which was labelled "NODE\_WITNESS (13)".

**Tags:** bitcoin-core, segregated-witness, pruning, node-services, bitnodes


---

## 1 answers

### Answer by username_1 on 2017-04-06. Score: 3 | Accepted answer

I've looked through several pages on bitnodes to find some more nodes that show `NODE_WITNESS (12)`. I've noticed a pattern: the number corresponds to the services that a node offers. Nodes advertise the services that they offer by sending a bitmap named `nServices`. The number in the brackets matches the decimal representation of the service bits that a node has set.

Looking around a bit, I've identified the following five bits:

* `NODE_NETWORK (1)`
* `NODE_GETUTXO (2)`
* `NODE_BLOOM (4)`
* `NODE_WITNESS (8)`
* `NODE_XTHIN (16)`, discontinued
* `NODE_COMPACT_FILTERS (64)`
* `NODE_NETWORK_LIMITED (1024)`

So, I'd say that with (12), you must be offering the services `NODE_BLOOM, NODE_WITNESS (12)`, lemme guess, you run a pruning node? :) Or would it be "blocksonly"?

---

Edit: Here are the service bits defined in the source code: [`protocol.h:271`](https://github.com/bitcoin/bitcoin/blob/a9f642870849dcbfe32632fd6614804be61ab40c/src/protocol.h#L271). And here is an overview in the Bitcoin Wiki page for [protocol documentation](https://en.bitcoin.it/wiki/Protocol_documentation#version).

> **Comments:**
> **username_0**: Yes, I'm running a pruning node!  

---

