Questions tagged [p2p]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
21 views

Maximum number of outbound connections in 2009

Maximum number of outbound full relay connections is 8 and 2 block-only excluding manual connections (8) right now Maximum number of outbound full relay connections What was maximum number of outbound ...
2
votes
1answer
37 views

How does using DNS seeds to find initial peers compare to using seednode?

How does using DNS seeds to find initial peers compare to using -seednode? This was asked by prayank on IRC and has been paraphrased. A related question is here.
2
votes
0answers
92 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 ...
0
votes
0answers
23 views

Add ipv6 addresses from `getpeerinfo` of Node 1 in peers.dat for Node 2

Node 1 (connects to only ipv6 nodes): bitcoind -signet=1 -port=18333 -rpcport=18222 -rpcuser=user1 -rpcpassword=pass1 -datadir=/home/prayank/node1 -debug=net -onlynet=ipv6 Get address for few nodes ...
1
vote
1answer
73 views

Bind to local IP address and use it in addpeeraddress

Bind local IP (Node 1) bitcoind -regtest=1 -port=18333 -bind=192.168.150.110 Logs: 2021-09-01T13:14:16Z Bound to 192.168.150.110:18333 2021-09-01T13:14:16Z Bound to 127.0.0.1:18445 Trying to add it ...
1
vote
2answers
44 views

What would happen to Bitcoin if GPS/Galileo timing ceased to be available?

According to this web site, the timing from a system like GPS is essential to "financial networks [which] rely on precision timing for synchronization and operational efficiency." Is the ...
2
votes
1answer
291 views

Is the `mempool` message reliable?

According to https://github.com/bitcoin/bitcoin/blob/master/src/net_processing.cpp#L3775-L3801, it seems like the mempool message is only responded to in certain cases. Can someone help understand how ...
0
votes
0answers
31 views

Can transactions be held for a long time without being processed?

I am learning a little bit about the bitcoin technology and I have some basic questions about its p2p and transaction processing. First imagine that a bitcoin transaction has included a fee (maybe a ...
3
votes
1answer
45 views

Is it possible to check which nodes banned my node?

I can ban peers with setban and check banned peers with listbanned in Bitcoin Core. Can I check which peers banned me?
1
vote
1answer
31 views

Is Bitcoins' peer-to-peer network unstructured or structured?

I can't find information about if the p2p network of Bitcoin is unstructured (the nodes are not organized in any specific way), or if it is structured (the nodes do have a way to interact with each ...
0
votes
1answer
56 views

What happens if a peer doesn't respond to "getheaders" or "getdata" on time?

Suppose a node receives the same "inv" message from many peers. Will the node send "getheaders" requests to all the peers or only one of them? Does the node keep a timer for ...
1
vote
0answers
22 views

Pseudocode for Bitcoin's P2P block propagation

I am going through Bitcoin's block propagation method at https://developer.bitcoin.org/devguide/p2p_network.html Are you aware of any pseudocode available on how blocks are propagated during the ...
0
votes
1answer
31 views

Do nodes maintain a download window after the initial syncing?

I was going through the Bitcoin P2P guide. https://developer.bitcoin.org/devguide/p2p_network.html It says that the nodes maintain a 1024-block download window during the initial syncing. However, at ...
1
vote
1answer
62 views

How do full nodes get the information about stale blocks?

In Bitcoin, many forks occur when multiple miners mine blocks at the same time. Then there will be multiple blocks at the same block height. I was looking at the Bitcoin P2P developer guide at https://...
2
votes
1answer
272 views

What is `ping` RPC used for?

ping doesn't return anything so what is it used for? If a user wants to ping and check ping time for all peers, getpeerinfo can be used.
1
vote
1answer
33 views

What does unbroadcast mean? What does it mean for a transaction to be successfully broadcast?

What does "unbroadcast" mean? What does it mean for a transaction to be "successfully" broadcast? These questions were asked in this Bitcoin Core PR review club on PR 2261 hosted ...
6
votes
2answers
752 views

Bitcoin Core uploads much more than it downloads

Since Bitcoin is a peer-to-peer network of mostly identical clients, I would expect each node to upload about as much as it downloads. So I was surprised to see that my Bitcoin Core node has (since ...
0
votes
0answers
12 views

Difference between hashgraph and bitcoin regarding tx communication between nodes [duplicate]

I heard about hashgrap and its gossip protocol and that hashgraph uses gossip about gossip. The latter obviously is not true for bitcoin, however, in the presentatin the gossip protocol itsself was ...
1
vote
1answer
60 views

Can bitcoind listen on both ipv4 and ipv6?

Can bitcoind listen on both ipv4 and ipv6? I know it can make outbound connections on both (onion and i2p) but can it also advertise multiple public hosts if available? This question was asked by ...
5
votes
1answer
500 views

To run a full node, should I get a static IP address from my ISP?

I have a router connecting my home LAN to the ISP. After opening port 8333 on the router, and forwarding it the computer running the node, bitnodes.io confirmed the node was reachable. However, ...
0
votes
1answer
36 views

What does net_processing cover conceptually in the Bitcoin Core codebase?

What does net_processing (.h and .cpp) cover conceptually in the Bitcoin Core codebase?
3
votes
1answer
93 views

In Bitcoin Core, are compact blocks pre-filled with more than just the coinbase?

In the "How are expected missing transactions chosen to immediately forward?" section of https://bitcoincore.org/en/2016/06/07/compact-blocks-faq/ it states that "To reduce the number ...
3
votes
1answer
117 views

Are there any downsides to banning node crawlers?

There are multiple entities and open-source software that crawl the Bitcoin P2P network to discover and monitor nodes for various purposes (statistics, surveys, academic papers etc.) Some of those I ...
0
votes
1answer
110 views

Maximum number of outbound full relay connections

What is the maximum number of outbound full relay connections a bitcoin core full node can make? I was assuming it's 8 but then realized we can add another 8 connections using addnode while reviewing ...
0
votes
1answer
23 views

What happens if nodes have different P2P versions during discovery?

My understanding is that nodes connecting to each other to exchange messages starts with a version handshake such that each node sends its P2P protocol version and gets an acknowledgement and vice ...
7
votes
1answer
1k views

How can I use Bitcoin Core with the anonymous network protocol I2P?

How can I use Bitcoin Core with the I2P anonymous network protocol?
1
vote
1answer
107 views

Why does "Hodl Hodl" not seem to... support Bitcoin? [closed]

After listening to this podcast, I got extremely excited for Hodl Hodl: https://www.youtube.com/watch?v=hJe7LIZ6cdI But then I went to their site and see this: https://lend.hodlhodl.com/offers/lend ...
2
votes
1answer
92 views

What problem set is the Minisketch library designed for? What is it currently used for and what could it be used for in future?

What problem set is the Minisketch library designed for? What is it currently used for and what could it be used for in future?
-1
votes
1answer
232 views

How exactly does "Lend at Hodl Hod" work?

I've read though this carefully: https://lend.hodlhodl.com/faq/basics It is extremely confusing. It seems as if, to borrow 1000 USDT or whatever, I have to first register an account (e-mail address on ...
1
vote
0answers
34 views

Is there such a thing as a decentralized stock market desktop application, in concept similar to Bisq?

Please note that I've already visited thousands upon thousands of slick websites with fuzzy claims about being "the future of money" and I consider them all to be vaporware at best, and ...
0
votes
1answer
69 views

How can I obtain a better understanding of the P2P messages between my full node and its peers?

I am interested in how my full node interacts with its peers, what messages it exchanges (e.g. gossip about other nodes on the network, transactions, blocks) and why my full node disconnects with ...
4
votes
1answer
121 views

Why does my full node need to load IP addresses from DNS seeds on restart?

I stop one of my Bitcoin Core full nodes (v0.19.1) with 10 connections and then start it again. It needs to load IP addresses from DNS seeds. Why is this? Why doesn't it try the addresses of peers it ...
0
votes
1answer
84 views

Why is JSON not used in the Bitcoin P2P protocol?

The Bitcoin P2P protocol uses its own serialisation format for the transferred data. Is this serialisation considered as more secure against DoS attacks than JSON?
2
votes
0answers
56 views

How to reliably check if your bitcoin onion node is reachable as advertised?

If getpeerinfo returns a good number of outbound onion peers but none show up as inbound:true, how do you check if your node is properly reachable as advertised? Several guides and forum answers ...
0
votes
1answer
172 views

Is the Bisq API finally "live" now or what?

For many years now, I've been waiting for Bisq to implement its damn API so I can begin trading (between crypto currencies, since automation is impossible with fiat). Today, I again did a "round&...
1
vote
0answers
96 views

Dandelion++ for Bitcoin

Dandelion BIP: https://github.com/bitcoin/bips/blob/master/bip-0156.mediawiki The article that I read about Dandelion++: https://www.monerooutreach.org/stories/dandelion.html It mentioned that ...
2
votes
0answers
47 views

Was bitcoin peer to peer network affected because of the recent BGP hijack incident?

Can someone ELI5 BGP hijacking, impact on Bitcoin, countermeasures and if there were any issues because of the recent incident? Related links: https://twitter.com/ProtonMail/status/1311013829514539011 ...
2
votes
1answer
82 views

How do I view information on the peers my Bitcoin Core full node is connected to?

I would like to view information on the peers my Bitcoin Core full node is connected to. How do I do this?
0
votes
1answer
32 views

What is the difference between node, peer and mininode in the functional test framework in Bitcoin Core?

I am learning about the functional test framework in Bitcoin Core. I am seeing the terms "node", "peer" and "mininode" being used. How are these defined and how are they ...
1
vote
0answers
27 views

How does bitcoin core calculate the local address score [duplicate]

For example, I have a node running with an ipv4 and an onion address, when I run the bitcoin-cli getnetwork info it have a field called score, and is unique per address. But, how the core calculate it?...
1
vote
0answers
22 views

Is there actually such a thing as "blockchains" being used right now for actual things? [closed]

In the last few years, I've heard "blockchain" and "blockchain 2.0" and many other such buzzwords repeated so many times that I'm beginning to wonder if I've missed out on ...
3
votes
1answer
48 views

What is the proper way to handle reorgs when fetching headers

I work on bitcoin-s, and we've found a problem where if a node is stopped with it's chain tip being a one that is later reorged out it will not be able to continue syncing headers. This happens ...
3
votes
1answer
208 views

How does a full node decide which outbound peers to have?

I understand that a full node can have up to 10 outbound connections (8 full relay peers and 2 block-relay-only peers). I wonder how my full node decides which nodes to connect to for outbound. What ...
4
votes
2answers
1k views

Since Bitcoin has no central system, where do network request go?

I heard bitcoin and other cryptocurrencies have no central system. BUT where do you send the transaction id? There must be a server to send the data to!? It probably is a simple question but, that's ...
1
vote
0answers
24 views

About polluting the peer table

Is there a well-known method to pollute a specific user's peer table? Eclipse attack is not available anymore due to the patch after a paper was introduced. Can you give some keywords? Thank you!
2
votes
1answer
63 views

How are we so sure that the bitcoin network is connected?

I am only beginning to understand the bitcoin's p2p network protocol but so far I know (and correct me if I am wrong) that a new node in the network attempts to connect to a "few" other nodes that ...
1
vote
1answer
65 views

How to get the time when a block is received at a node?

Is there any variable in the bitcoind code that records the timestamp when a block is received for the first time by a particular node? To be more precise, for transactions, transaction information ...
2
votes
1answer
58 views

Can a wallet/exchange provider ask for transaction details

My question has two parts, Am I obligated to share transaction details with my wallet/exchange provider for any payment I made to an individual, like subscription to a website? Irrespective of the ...
0
votes
1answer
236 views

bitcoincore banned all peers and I can't to sync

I started downloading the chain and got to 14% and it just stopped and still shows 7% per hour but not moves. I checked and it banned all the peers and everytime I unban them they just get banned ...
3
votes
1answer
65 views

Why does bitcoin sync inventories?

I read the bitcoin docs describing how btc syncs. During IBD it gets the inventories up to the tip with getblock. Why does it not skip this step and get the blocks, generating the inventories as it ...