Questions tagged [p2p]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
46 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 ...
1
vote
0answers
31 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 ...
0
votes
1answer
19 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
17 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
22 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
19 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
25 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
47 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
21 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!
1
vote
1answer
40 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
35 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
38 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
71 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
59 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
39 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
302 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 ...
2
votes
1answer
45 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
108 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
42 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
33 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
301 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
65 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 ...
0
votes
1answer
24 views

Finding wallet address on peer 2 peer network

does anyone here knows how to find the addresses from a tx object from the bitcoin protocol documentation on the peer to peer network?? in the document it says that tx message is only consist of ...
0
votes
1answer
69 views

P2P getHeaders message - how to get block locator hashes

I'm trying to build my own block explorer So that I need to use p2p bitcoin protocol. For that I'm using btcd (golang) lib. According to bitcoin book I have to send version message (and receive ...
0
votes
1answer
58 views

How to avoid conflicts in a peer-to-peer topology (Bitcoin)?

For example in Bitcoin, if I want a miner to verify whether other miners store a transaction, before deleting it from his mempool. How can I handle the case more than one miner doing the verification ...
0
votes
1answer
174 views

Does extra outbound connection when tip is stale disable feeler connection?

I run a Bitcoin node for about 1.5 months and I notice that there is no feeler connection is made in 25 days, hence the IPs in the tried table does not grow. I also notice in the debug.log during the ...
3
votes
2answers
144 views

How to confirm how many peers a node has?

When a node requests one of it's neighbours for a list of it's peers, that node responds with a list of all of it's neighbours. I'm just wondering is there a way to confirm that those nodes are ...
0
votes
1answer
80 views

json-rpc and p2p port protocol type

What type of port protocol do json-rpc and p2p use? does it use TCP or UDP? If possible, can you config or reprogram the open-source and compile the source to use TCP only if it also uses UDP?
0
votes
1answer
95 views

How does a node decide whether a block is valid?

I'm a software developer, and I've been trying to figure out how a node decides whether a block is valid, I do understand the hashes in bitcoin, the merkle root, and all those aspects but my question ...
2
votes
0answers
47 views

Why should SPV nodes operate on the P2P network?

I understand there are advantages for the SPV client to acquire header-chain and subsequent inclusion proofs over the p2p network: Peer discovery P2P node interface is public Reuse of P2P messaging ...
1
vote
1answer
67 views

Possible better peer-to-peer protocols for Bitcoin?

As we know, bitcoin uses flooding in order to propagate blocks and transactions across all the nodes in the network. As it was launched in 2009, it's been almost 10 years since it's launch and I was ...
0
votes
1answer
42 views

Did Bitcoin Core relay blocks sequentially or in parallel to peers before Compact Blocks?

As I can see in the Bitcoin code, currently a node sends a block in parallel to all its peers. This makes sense as the block sending time is relatively small compared to the P2P latency. However, my ...
14
votes
1answer
2k views

What is the tradeoff between privacy and implementation complexity of Dandelion (BIP156)

Dandelion is a new relay protocol for transactions on cryptocurrency peer-to-peer networks. It has been heralded as a huge privacy improvement for cryptocurrencies at the networking level– I'm ...
1
vote
2answers
212 views

What are seeds in the source code of bitcoin?

https://github.com/bitcoin/bitcoin/blob/master/src/chainparams.cpp starting from line 132, I see the function vSeeds.emplace_back("seed.bitcoin.") and next to them there are real full names. What do ...