Bitcoin Forum
May 14, 2024, 06:54:30 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is Services identifiers in developer-reference deprecated?  (Read 591 times)
Coding Enthusiast (OP)
Legendary
*
Offline Offline

Activity: 1039
Merit: 2783


Bitcoin and C♯ Enthusiast


View Profile WWW
December 22, 2016, 05:33:49 AM
Merited by ABCbits (1)
 #1

According to https://bitcoin.org/en/developer-reference#version there are two service identifiers 0x00 and 0x01 (8 bytes) but I am getting other numbers in that field in both Version message and Addr. What am I missing?

Example:
Version message received from the connected node has 0x0d 00 00 00 00 00 00 00
addr messages: 0x05 00 00 00 00 00 00 00

double checked with Wireshark bitcoin filter.

Projects List+Suggestion box
Donate: 1Q9s or bc1q
|
|
|
FinderOuter(0.19.1)Ann-git
Denovo(0.7.0)Ann-git
Bitcoin.Net(0.26.0)Ann-git
|
|
|
BitcoinTransactionTool(0.11.0)Ann-git
WatchOnlyBitcoinWallet(3.2.1)Ann-git
SharpPusher(0.12.0)Ann-git
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6641


Just writing some code


View Profile WWW
December 22, 2016, 05:56:20 AM
 #2

That documentation is not updated very frequently. It is missing some services. There are also NODE_BLOOM (0x02) and NODE_WITNESS (0x03) service bits.

Coding Enthusiast (OP)
Legendary
*
Offline Offline

Activity: 1039
Merit: 2783


Bitcoin and C♯ Enthusiast


View Profile WWW
December 22, 2016, 06:08:36 AM
 #3

That documentation is not updated very frequently. It is missing some services. There are also NODE_BLOOM (0x02) and NODE_WITNESS (0x03) service bits.

Are these the only two?
And where can I read more about them to know what they indicate?

Projects List+Suggestion box
Donate: 1Q9s or bc1q
|
|
|
FinderOuter(0.19.1)Ann-git
Denovo(0.7.0)Ann-git
Bitcoin.Net(0.26.0)Ann-git
|
|
|
BitcoinTransactionTool(0.11.0)Ann-git
WatchOnlyBitcoinWallet(3.2.1)Ann-git
SharpPusher(0.12.0)Ann-git
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6641


Just writing some code


View Profile WWW
December 22, 2016, 03:21:59 PM
 #4

That documentation is not updated very frequently. It is missing some services. There are also NODE_BLOOM (0x02) and NODE_WITNESS (0x03) service bits.

Are these the only two?
And where can I read more about them to know what they indicate?
I'm pretty sure these are the only other two service bits in use. However it is possible that other software implementations are using service bits but not informing the rest of the development community that they are.

Generally the service bits have an associated BIP, but you will have to read through all BIPs in order to find most defined service bits; they are not so state obviously in the BIP title.. Even so, some developers like the developers of Bitcoin Unlimited do not participate in the BIP process so they may be using service bits that no one else knows about.

Coding Enthusiast (OP)
Legendary
*
Offline Offline

Activity: 1039
Merit: 2783


Bitcoin and C♯ Enthusiast


View Profile WWW
December 23, 2016, 12:37:12 PM
Last edit: December 23, 2016, 12:59:04 PM by Coding Enthusiast
Merited by ABCbits (1)
 #5

I sometimes hate bitcoin Cheesy
I was looking around since yesterday and so far I have found this: https://github.com/bitcoin/bitcoin/blob/master/src/protocol.h#L249-L278
And at least in core these are the "service flags" (if my understanding of bit shift in c++ was correct) with their numbers:
NODE_NONE = 0,
NODE_NETWORK = 1,
NODE_GETUTXO = 2,
NODE_BLOOM = 4,
NODE_WITNESS = 8,
NODE_XTHIN = 16


Have not yet found "5" and "13", gotta dig deeper in BIPs
Everything so far is clear now.
5: NodeNetwork | NodeBloom
13: NodeNetwork | NodeBloom | NodeWitness

Projects List+Suggestion box
Donate: 1Q9s or bc1q
|
|
|
FinderOuter(0.19.1)Ann-git
Denovo(0.7.0)Ann-git
Bitcoin.Net(0.26.0)Ann-git
|
|
|
BitcoinTransactionTool(0.11.0)Ann-git
WatchOnlyBitcoinWallet(3.2.1)Ann-git
SharpPusher(0.12.0)Ann-git
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!