Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
7 votes
1 answer
444 views

What is the maximum, realistic P2P message payload size?

In Bitcoin Core, MAX_SIZE defines the maximum valid P2P message payload size to be 32MB. Is it realistic that a peer sends a message payload close to 32MB? What is the maximum, but still realistic ...
0xb10c's user avatar
  • 1,460
1 vote
0 answers
46 views

Connection Reset after sending mempool message

I build a python script to talk to bitcoin test nodes. When I'm sending mempool messages, my connection is getting is reset. Also sometimes when connecting to Jimmy Song's testnet node (testnet....
Bitcoingraffiti's user avatar
2 votes
0 answers
132 views

Version message C++

I learn bitcoin and I am trying to send a version message and get response, respectevily, by using C++. I can not find any examples or articles how to do it in C++. I'm forming request and send it by ...
recei's user avatar
  • 21
2 votes
2 answers
75 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->...
Aliakbar Ahmadi's user avatar
3 votes
1 answer
238 views

What is "trickling" in terms of bitcoin?

In the Bitcoin (0.10.0) source code I'm coming across the term "trickle". Could someone please give short but accurate explanations on following instances and tell what they're used for? bool ...
Aliakbar Ahmadi's user avatar
3 votes
1 answer
1k views

Where are the Main network magic bytes stored in bitcoin's source code?

Bitcoin uses F9 BE B4 D9 as its main network magic bytes. I've searched the source but cannot find where these values are stored. Presumably they're computed, but I'm not sure where. Can someone tell ...
greatwitenorth's user avatar