Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [p2p]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
21 views

what kind of wallet i have to use for my cryptocurrency exchange

I'm Programming a Cryptocurrency Exchange ... The Problem Is I got API From https://binance.com But I Don't Know How Generate My Wallet ... Must I Use https://binance.com Wallet Or Can I Use Hard ...
user avatar
1 vote
1 answer
35 views

How Does A Node Get Infomation From The TxID - that is, isn't the TxID the SHA^2(256) of various transaction components?

If I'm right, SegWit TxIDs are composed of the SHA^2(256) hash of the Non-SegWit data of a transaction. But, how does another Node use the TxID to obtain infomation about the transaction such as the ...
user avatar
  • 29
2 votes
1 answer
80 views

Does running a node benefit the network?

There is a 10-year old question asking this. The sole answer to that question at the time was essentially a yes, and I've seen people say that running a node makes the network more "secure" ...
user avatar
7 votes
1 answer
316 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 ...
user avatar
  • 1,342
1 vote
0 answers
55 views

Programmatically determining a full node in a peer-to-peer network

So I've found relatively few resources explaining the intricacies of the Bitcoin P2P network internal functionality. Right now, I'm writing a similar sort of peer-to-peer network, in another language ...
user avatar
1 vote
1 answer
74 views

If we allow zero fee transactions within new policy rules for package relay why not also allow zero satoshi outputs?

In the proposed package relay the requirement that a transaction must meet the minimum relay fee rate is relaxed (the fee rate can be zero by the new policy rules) as long as the package in its ...
user avatar
0 votes
1 answer
44 views

How do bitcoin nodes rollback state when a higher POW chain is introduced

Let's say the current chain consensus has a total POW of X... this is agreed upon by all 10k+ BTC nodes. A new "magic" node joins and it has mined a chain (privately) with total POW = 2*X. ...
user avatar
0 votes
1 answer
21 views

What's the specification for Compact Size service messages?

I'm trying to understand the structure of the service and network bytes for compact sizes. what's specification for compressing the bytes for example in addrv2 message encoding? thanks.
user avatar
  • 121
3 votes
1 answer
182 views

Can "Block" Message send multiple blocks?

Can multiple blocks be sent in a single block message in response to the GetBlocks message, or will a new Block message have to be sent for every block? Thanks.
user avatar
  • 121
0 votes
1 answer
48 views

What resources are needed to implement an Eclipse attack?

I have read this paper of Eclipse attack. And I want to konw that what resources are needed to implement an Eclipse attack? IP addresses and investing attack time are nedded,and is there anything else ...
user avatar
  • 1
0 votes
1 answer
39 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 ...
user avatar
2 votes
1 answer
60 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.
user avatar
2 votes
0 answers
109 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 ...
user avatar
0 votes
0 answers
33 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 ...
user avatar
1 vote
1 answer
172 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 ...
user avatar
1 vote
2 answers
68 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 ...
user avatar
3 votes
1 answer
305 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 ...
user avatar
  • 159
0 votes
0 answers
37 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 ...
user avatar
  • 101
3 votes
1 answer
61 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?
user avatar
1 vote
1 answer
74 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 ...
user avatar
  • 11
0 votes
1 answer
98 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 ...
user avatar
  • 141
1 vote
0 answers
24 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 ...
user avatar
  • 141
0 votes
1 answer
36 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 ...
user avatar
  • 141
1 vote
1 answer
85 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://...
user avatar
  • 141
2 votes
1 answer
325 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.
user avatar
1 vote
1 answer
48 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 ...
user avatar
6 votes
2 answers
791 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 ...
user avatar
0 votes
0 answers
13 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 ...
user avatar
1 vote
1 answer
143 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 ...
user avatar
5 votes
1 answer
971 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, ...
user avatar
  • 153
0 votes
1 answer
38 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?
user avatar
3 votes
1 answer
100 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 ...
user avatar
3 votes
1 answer
155 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 ...
user avatar
1 vote
1 answer
264 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 ...
user avatar
0 votes
1 answer
32 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 ...
user avatar
  • 197
7 votes
1 answer
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?
user avatar
1 vote
1 answer
111 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 ...
user avatar
  • 11
2 votes
3 answers
95 views

Trust in bitcoin networking

I am new to the subject, but as I was studying I wasn't able to understand something and I would appreciate if anyone could help me. I understand that in most aspects bitcoin doesn't rely on trusting ...
user avatar
2 votes
1 answer
114 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?
user avatar
-1 votes
1 answer
262 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 ...
user avatar
1 vote
0 answers
39 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 ...
user avatar
  • 11
0 votes
1 answer
105 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 ...
user avatar
4 votes
1 answer
285 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 ...
user avatar
0 votes
1 answer
90 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?
user avatar
  • 1
2 votes
0 answers
72 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 ...
user avatar
0 votes
2 answers
317 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&...
user avatar
1 vote
0 answers
118 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 ...
user avatar
2 votes
0 answers
57 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 ...
user avatar
2 votes
1 answer
113 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?
user avatar
0 votes
1 answer
52 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 ...
user avatar