Questions tagged [network]
This tag should be used for questions related to the Bitcoin network and communication between different nodes on the Internet.
474
questions
4
votes
1
answer
740
views
Why is each transaction broadcast twice in the Bitcoin network?
Here is a part of this mail in the mailing list from Satoshi:
The bandwidth might not be as prohibitive as you think. A typical
transaction would be about 400 bytes (ECC is nicely compact). Each
...
0
votes
1
answer
58
views
Can we or Should we build a public health records be kept on the bitcoin network?
Can/Should we public health records be kept on the bitcoin network?
If your answer no, would love to know why?
If your answer is yes, what do you think the most efficient way to build such a ledger?
...
4
votes
1
answer
227
views
Theoretical attack on the network by companies
I've thought about how powerful companies can change the protocol in pretty much any way they want. I'm pretty sure and hope there's some kind of way the network is resilient to this but I'm not sure ...
2
votes
1
answer
88
views
Is there a way to download blocks from scratch without downloading block headers first?
I would like to know if there's a way to download a blockchain without knowing block headers. This could be achieved by asking NEXT_BLOCK_HASH from the genesis block. But is this even possible ?
4
votes
1
answer
206
views
BIP324 encrypted packet structure
I recently saw the BIP 324 proposal. It shows us there can be some privacy enhancement by using ECDH secrets and encryption algorithms such as ChaCha20 and AEAD-ChaCha20-Poly1305. The proposal ...
0
votes
0
answers
32
views
How to run master mining node with semi-offline slaves?
How can I run a master mining node with semi-offline slaves?
I have a single master node that is fully connected to the internet (bidirectional).
The master node is also connected to thousands of ...
0
votes
0
answers
53
views
Failed Tls connection to LND with gRPC and REST using rust
I have been trying to connect to an LND node using Rust as a language.
I have been constantly be given this error:
tonic::transport::Error(Transport, hyper::Error(Connect, Custom { kind: InvalidData, ...
1
vote
1
answer
220
views
How to find transaction's original author in Bitcoin Core?
I have recently installed Bitcoin Core on my PC and downloaded the blockchain in prune mode. I want to find out if there is a way to find transactions original author, the node which broadcasted a ...
2
votes
0
answers
41
views
Listening only for local inbound connections over "clearnet", and using Tor for external connections
I want to connect some wallets to my node in my LAN, over regular connection (not Tor), but I don't want my node to use this "clearnet" connection for anything else (for example to connect ...
3
votes
1
answer
188
views
Bitcoind is able to listen both to clearnet and Tor networks but broadcast transaction only over Tor?
I know bitcoin core node can listen to both Tor and clearnet connections, but in this situation is it possible to broadcast transaction only over the Tor network and not clearnet? I'm asking it for ...
8
votes
2
answers
901
views
How does it contribute to the Bitcoin network when I run a node with a bigger than default mempool?
Lately, when the blockspace demand outstrips the default mempool size and the dynamic minimum feerate of nodes rises above the minimum transaction feerate, I often see the suggestion to simply ...
1
vote
1
answer
67
views
Is it normal that uploading is higher than downloading? (traffic network) [duplicate]
Config:
Windows 10, i5, RAM : 16Go
Bitcoin options : Version : 24.0.1
with Serveur RPC on, UPnP on, natpmp on, no proxy, no onion
Does it seems normal to you ?
0
votes
2
answers
74
views
How much info does the Bitcoin Network know about miners? Would a time traveler be discovered?
What information does the bitcoin network & blockchain actually log about the miners themselves, such as hardware-specs/OS/hashing-rate/etc.? And how backwards compatible are the protocols?
For ...
2
votes
1
answer
66
views
How many lightweight nodes vs full nodes are there on the network?
I'm curious, how many lightweight nodes are there on the network? Is this easy to tell?
3
votes
1
answer
83
views
bitcoin-cli -netinfo not showing incoming ipv4 peers
I was trying to get my bitcoin node to be able to receive ipv4 peers for couple of days, but could not see any incoming peers even tho my port 8333 was open and reachable and to my best knowledge ...
2
votes
1
answer
68
views
DoS attack and MAX_BLOCKS_IN_TRANSIT_PER_PEER
I was reading Mastering Bitcoin and I found, in the section Exchanging "Inventory", this:
"The node keeps track of how many blocks are "in transit" per peer connection, ...
1
vote
2
answers
50
views
If my node is connected to 7 nodes and 4 of those say that a block they transmitted to me is valid will i mark it as valid?
Let's say I am a node and I am connected to 7 other nodes.
4 of those nodes transmit me a tx or a block and say it's valid.
(I am aware they do not explicitly send a message saying that something they ...
3
votes
1
answer
118
views
ThreadOpenConnections and break versus continue: why the one versus the other?
In the inner loop of ThreadOpenConnections() in net.cpp sometimes there is a break to the outer loop and sometimes a continue. This is my understanding of the decision between break and continue in ...
2
votes
1
answer
160
views
Raw data vs information encoded in OP_RETURNs
Imagine I want to fill the 80 bytes of OP_RETURN data with zeroes, so that the resulting data is 640 bits set to 0, or 160 hex digits set to 0.
The data is 640 bits but the information encoded is much ...
6
votes
1
answer
48
views
What can an attacker do if they compromise a DNS seeder?
Recently Bitcoin Core developer Luke-jr was hacked and has stated that we should consider anything owned by him to be compromised. This would include his DNS seeder at dnsseed.bitcoin.dashjr.org. If ...
0
votes
1
answer
78
views
Network traffic peaks for Bitcoin Core GUI Node
I have the latest version installed, no SOCKS5 connexion.
Sending maximum is around 4500Ko/s (also seeable on the picture).
Do you know why it goes up like that ?
0
votes
1
answer
45
views
When a block is broadcasted, are all the data of the transactions packed into it or are only its hashes included in the block
Most of the blogs and answers to this question do not give a straightforward answer.
I have a good amount of information regarding bitcoin and would like to simply know if the transactions are packed ...
9
votes
3
answers
4k
views
Why is connecting bitcoin exclusively over Tor considered bad practice?
I've heard that a bitcoin node with only Tor connections is "trivial" to eclipse attack and that such nodes should maintain at least one (or more?) clearnet connections in addition. What is ...
1
vote
1
answer
49
views
Globally offline node goes online but txs that were broadcast to it while off the net are not broadcast when it goes fully online
I have a Bitcoin Core node that I disconnected from the internet while keeping it on a hub with a laptop. I sent a transaction to that node from my laptop (via a local Electrum server). Now I put ...
1
vote
1
answer
84
views
Can Bitcoin work without Network Time Protocol?
After reading an article about the imminent retirement of David Mills, and the possibility that there could be some handover issues (imho just rumors), I wondered if the Bitcoin protocol depends by ...
0
votes
1
answer
136
views
How to run bitcoind and lnd on separate machines on the same network
I have a bitcoin full node running on a raspberry pi 3b but it doesn't have enough memory to also run lnd at the same time so I'm trying to do that on a separate machine connected to the same network. ...
5
votes
2
answers
851
views
How does bitcoin prevent DDoS amplification via the `addr` p2p message type?
If I am not mistaken the mainline bitcoind will accept unsolicited addr messages, and upon receiving this message - the struct is deserialized, and then verify each address from the unsolicited ...
8
votes
1
answer
697
views
What is the difference between blocksonly and block-relay-only in Bitcoin Core?
The terms blocksonly and block-relay-only that are used in Bitcoin Core are very similar. What is the difference between them?
1
vote
2
answers
154
views
Why does the network allow a fraudster (double spender) to broadcast a transaction to a single node (the victim)?
Let's assume for the sake of argument that a fraudster is able to create blocks faster than the rest of the network. Given that, they would be able to achieve double spending by making a fraudulent ...
0
votes
1
answer
68
views
Peer-to-peer - informations about downloading
I would like to know how the software downloads the blockchain. If the bytes write throught the socket and wait until it's written. And If the software asks 16 blocks to each peer in which you're ...
3
votes
1
answer
124
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" ...
7
votes
1
answer
393
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 ...
7
votes
1
answer
2k
views
What is a block-relay-only connection? What is it used for?
Modern versions of bitcoin core establish a fixed number of outbound connections: 8 outbound-full-relay connections and 2 block-relay-only connections. What is the purpose of block-relay-only ...
2
votes
1
answer
40
views
How would one test the impact on the Lightning Network of a network split on the base layer?
How would one test the impact on the Lightning Network of a network split on the base layer (the blockchain progressing on two separate branches with each branch unaware of the other competing branch)?...
1
vote
1
answer
52
views
How do the various bitcoin roles interact?
I think I've reached a reasonable (-ish) understanding of blockchain and bitcoin as it works just below the surface, but I still don't get that surface view. So, from the umpteen videos I've watched, ...
6
votes
3
answers
486
views
What is a Feeler Connection? When is it used?
The bitcoin client hard codes a limit of 8 outbound connections and 2 block-only connections. Your node will try to always maintain these 10 outbound connections with reliable peers as a defense ...
2
votes
1
answer
141
views
What is the prior work or inspiration for the new/tried table design?
In Eclipse Attacks on Bitcoin’s Peer-to-Peer Network section 8 Related Work, the authors describe how some of the countermeasures to eclipse attacks were inspired by botnets. What inspired the design ...
1
vote
2
answers
120
views
51% attack on a small network of nodes?
Not all the nodes in the bitcoin network are connected. So that means the computational power required to attack a smaller network would be comparatively easier.
So, say we start a 51% attack on a ...
1
vote
0
answers
89
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 ...
4
votes
1
answer
197
views
How is network conflict avoided between chains?
I have a question which may appear obvious but hopefully it’s not.
How do different Distributed Ledger Technologies (DLTs) and cryptocurrencies avoid network conflict?
I understand the distributed ...
6
votes
1
answer
344
views
Bitcoin Core stalled peer logic during initial block download
I'm trying to track down the cause of unexpected (20% to 85%) IBD slowdowns between my 2020 and 2021 annual performance tests.
I experienced this slowdown with multiple implementations, so I don't ...
5
votes
2
answers
187
views
What does "Network Unroutable" means?
I just started running bitcoin core on a dedicated laptop. I wanted to see if my node is connected to my Wasabi wallet so I sent some sats from Strike. In the peers list Wasabi shows up but under ...
0
votes
0
answers
181
views
Why does Electrum never complete synchronization with a server?
How do I diagnose why electrum never finishes synchronizing?
I've tried selecting networks individually without success.
Can I ping a server to confirm connectivity?
0
votes
3
answers
64
views
if the lower bound of a blocks timestamps is the median of the previous blocks, how can the network difficulty ever decrease?
according to bitcoin developer documentation the lower bound for a blocks timestamp is the median of the previous 11 blocks.
and also according to the documentation the network difficulty is ...
2
votes
2
answers
123
views
Is there any way to activate full 'leech' mode?
As I understand, bitcoin basically represents a situation where nodes are expected to (and do) serve other nodes in the network, information that represents the money of all transactions in that ...
0
votes
1
answer
66
views
How to get IPs of 8 peers my node propagates transactions and blocks to?
I see that bitcoin-cli can do getpeerinfo. However, it typically returns around 30 different IPs. Even if I ask for only outbound ones, I get around 16 addresses.
$ bitcoin-cli getpeerinfo | grep &...
3
votes
1
answer
189
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.
3
votes
2
answers
455
views
Unable to use I2P on Ubuntu 20.04 / 21.04
I configured the I2P according to this answer on Ubuntu 20.04 and 21.10.
But I have been getting the following error when I try to connect to any I2P peer:
I2P: Error connecting to ...
2
votes
1
answer
93
views
Is it okay to send witness transactions in response to `MSG_TX` get data messages?
I have a neutrino client that currently signals NODE_NONE. When it announces transactions it sends inventory messages and gets getdata MSG_TX requests back. Currently it replies with the witness ...
1
vote
0
answers
42
views
Connection Reset after sending mempool message
I build a python script to talk to bitcoin test nodes. When I'm sending mempool messages, my connection is getting is reset.
Also sometimes when connecting to Jimmy Song's testnet node (testnet....