Questions tagged [p2p]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
2answers
32 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
22 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
147 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
16 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
33 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
15 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
26 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
49 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
71 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
132 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
0answers
19 views

Creating a bitcoin simulation

I want to create a bitcoin simulation where I can simulate information propagation similar to that of the real bitcoin network. I would then like to change how information propagation works in this ...
0
votes
1answer
38 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
0answers
19 views

Private Blockchains: Blocks’ validation

I’m a software developer and I’m trying to understand blockchain at a code level I have the following issue: There’s a private blockchain, this private blockchain does not have any relation to ...
0
votes
1answer
45 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
32 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
57 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
37 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 ...
10
votes
1answer
1k 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 ...