Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [inventory]

Questions regarding the inventory message of the Bitcoin peer-to-peer protocol.

1
vote
2answers
366 views

How does a node get information from other nodes?

I think a node sometimes needs to get a information from other nodes. e.g. get set of UTXO. get main(longest) chain. I have two questions. How does a node tell other nodes these requests? Like ...
0
votes
1answer
85 views

Does bitcoind send message headers and payload separately in P2P protocol?

I am connecting to my local bitcoind using TCP and observed the following behavior: I see many messages where only header is given or only part of the payload is attached. Of course, it could be a ...
0
votes
1answer
98 views

How to create an inventory message and send it?

I am trying to create an inventory message of specific hashes that I select. Assuming I have all the hashes stored in a vector, how do I create the message 'manually'? (i.e stuff like getting total ...
2
votes
1answer
268 views

What is learned from listening for inventory messages?

I am reading the paper Deanonymisation of clients in Bitcoin P2P network [PDF] and have some questions about the fourth step in 'chapter 5: Deanonymization' I don't understand the emphasized part: ...
1
vote
2answers
336 views

Block inventory messages

I've written some code for connecting to the network, receiving inventories, and requesting data. What I am noticing is that my local node never sends me inventory messages with blocks in them unless ...
1
vote
0answers
83 views

How to access locally stored inventory data?

I'm looking for objects in the source code of Bitcoin Core that record all block inventories distinguished by their miners - Is there a container that keeps track of blocks on chainActive and stores ...
2
votes
2answers
63 views

Two if's before sending an inventory message

Going through main.cpp I couldn't completely understand the purpose of a double barrier coded as if-statements: I'm referring to ... if (pto->setInventoryKnown.count(inv)) and if (pto->...
1
vote
1answer
311 views

What else can bitcoin inventory vectors be used for?

As described in the protocol specification bitcoin nodes respond to the inv command, which queries a node's knowledge of one or more objects, with an inventory vector. According to the bitcoin wiki, ...