Questions tagged [p2p]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
43 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
20 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
25 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
53 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://...
3
votes
1answer
254 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 ...
8
votes
2answers
739 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
42 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 ...
6
votes
1answer
354 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
35 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
92 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
113 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
65 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
21 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 ...
6
votes
1answer
644 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
103 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
90 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
217 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
33 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
59 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 ...
3
votes
1answer
89 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
81 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
52 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
141 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
87 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
41 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 ...
1
vote
1answer
60 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
29 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
26 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
37 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
152 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
22 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
61 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
57 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
52 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
194 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 ...
1
vote
1answer
70 views

Bitcoin P2P API getBlocks always returns 500 inv items

I'm trying to build a mini full node so that I can understand exactly how they operate. I've managed to get a few parts of the P2P api working however I am stuck with basic things like 'getblocks' and ...
1
vote
3answers
1k views

Get transaction data from full node

Background Information I am building an application that requires the ability to query any bitcoin full node (from a python script using raw tcp sockets) in order to read the OP_Return value listed ...
3
votes
1answer
2k views

Bitcoin protocol and Wireshark

I captured bitcoin protocol communication in real-time and it is present in fig1 and fig2. Fig1 In red box, there are many types of command. First Question: How can Wireshark detect bitcoin ...
2
votes
1answer
56 views

Do full-nodes process all transactions before broadcasting the new block header?

If so, why not do it after (re)broadcast? I think it would cut down on lag time. Since the node would still validate the PoW and the previousblockhash, it would not be possible to DoS the network ...
3
votes
1answer
237 views

How does the Bitcoin p2p network work? Does it need port forwarding?

But does every peer node in the bitcoin p2p network need to have ports forwarded in order to participate? Otherwise, how does the p2p network work in the Bitcoin network? I heard that there are some ...
3
votes
2answers
45 views

Why don't nodes resume all existing outbound connections at restart?

The Erebus attack can, according to the authors, be accelerated by causing the victim node to reboot* at opportune moments. This is because the node will pick new outbound peers from a list that's ...
1
vote
0answers
39 views

Does finding neighbors in Bitcoin consider locality and hop count?

When the list of neighbors is being gathered by a new nodes in the network, does it consider the distance between the nodes to find closest possible, or it just takes some random nodes? In other words,...
1
vote
2answers
385 views

Selling btc but avoiding bank payment reversals

If you sell some btc using a no-kyc p2p exchange, how do you avoid bank transfer payment reversals? One of the best things about btc is that no one can reverse bitcoin transactions (unless some sort ...
0
votes
1answer
19 views

requesting transaction information through peer2peer network got notfound

my current understanding is that after i did my "handshake" with a public node succesfully, i should be able to do a getdata mesage about a transaction from a transaction hash and they should respond ...
1
vote
1answer
75 views

How does the transaction received from getdata relates to data from blockchain.info?

Say my printed output format is for a tx object is: <Tx version: (version)> ntx_ins: (TxIns prev_output_hash) tx_outs: (TxOut values), total:(sum of TxOut values)> If I ...