Questions tagged [peers]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
11
votes
4answers
3k views

Why doesn’t Bitcoin use UDP to do Blockpropagation?

Bitcoin uses TCP for P2P but why is UDP not used? Modern day internet has relatively low packet loss rate so UDP is reliable. Even if some packets are dropped the peers can always request for the ...
9
votes
3answers
2k views

Can an unconfirmed transaction that only Blockchain.info shows be manually re-broadcast?

Blockchain.info shows a transaction that was created by Blockchain.info/wallet but for whatever reason the transaction didn't confirm right away and appears to not be getting re-broadcast (perhaps ...
8
votes
1answer
4k views

How do I read peers.dat file to get a list of all peers seen or that bitcoind has connected to?

In version 0.8.6 of Bitcoin, I see that peers.dat file is a custom database format declared in db.h:317 (class CAddrDB) and defined in dh.cpp:485. Any ideas on how I could go about reading the data ...
8
votes
5answers
3k views

How blocks are created and broadcast?

Followings are some of my understandings about how bitcoin blockchain works, and want to confirm. Appreciate your comments and thoughts. In the blockchain, every peer receives both transactions and ...
7
votes
1answer
4k views

What is the difference between inbound and outbound connections?

I have port 8333 open with 8 outbound and 2 inbound connections. Is my node transmitting and receiving transactions and blocks from both types of connections? Or does the "inbound" flag mean I am ...
6
votes
1answer
562 views

How do I still have connections without forwarding port 8333?

First of all, this isn't a problem I am having, I'm just curious how this works. If you run your node with port 8333 open, you'll receive a large amount of connections after being online for a while....
6
votes
2answers
1k views

How to make bitcoind connect to more nodes?

Let's say I have a dedicated server just for my bitcoind and for better reliability and some security reasons I want it to be connected to a much bigger number of nodes than it is willing to do by ...
6
votes
2answers
251 views

Could the BGP attack be used to split the Bitcoin network?

I just learnt about the BGP attack: http://www.wired.com/2014/08/isp-bitcoin-theft/ http://www.secureworks.com/cyber-threat-intelligence/threats/bgp-hijacking-for-cryptocurrency-profit/ The ...
5
votes
2answers
1k views

Looking for a better way of listing all my peers

I am looking for a cheap and efficient way (rather than hacking through the Bitcoin source code) of listing my peers. Something I have come up with: #!/bin/bash netstat -p tcp -nba | grep '.8333.*...
5
votes
1answer
378 views

How often does Bitcoin connect to the fallback nodes?

Does the standard client have a preference for connecting to fallback nodes (for example, by trying to have at least 1 connection to such node at all times), or are they treated like any other nodes?
5
votes
1answer
563 views

How peer discovery works after connecting to hardcoded nodes?

I am tinkering with the bitcoin source code and trying to understand the exact working of peer discovery mechanism in the testnet mode for which I have made the following changes: Disabled the DNS ...
5
votes
1answer
438 views

What is the schema of the data stores used by the reference client?

I'm interested in seeing the schema (layout and indexes) that is used in the reference client. Namely wallet.dat, the bk** files and also the in-memory uncommitted tx. Does this exist anywhere for ...
4
votes
1answer
544 views

Why does the daemon require peers in order to start mining?

I wanted to start mining Bitcoin from the genesis block, so I cloned Bitcoin and removed the checkpoints. Then I compiled and started up the daemon. I wasn't connected to any other peers, however, so ...
4
votes
3answers
63 views

Bitcoin core full node - Should I choose my peers or it's fine to use the hardcoded ones?

I have a full node v 0.17.1 running 12-14 hrs/day and I was wondering if it's helpful, for privacy or for whatever reason, to add peers (maybe from https://bitnodes.earn.com/nodes/leaderboard/) with ...
4
votes
3answers
859 views

Does being connected to more peers relay transactions faster?

If I'm connected to 500 peers, will I know about transactions faster than if I'm only connected to 8 peers?
3
votes
2answers
138 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 ...
3
votes
1answer
103 views

Stopping Hash field in GetBlocks Message

Reading Bitcoin Developer Guide, I couldn't fully answer following question: What is the exact purpose of the Stopping Hash field inside a GetBlocks Message?
3
votes
1answer
1k views

Testnet peers list (with IP addresses)

There are some services to get the list of current known peers, like those offered by 21.co or Blockchain.info but I can't find anything similar for the Testnet network. Does anybody know a Testnet ...
3
votes
2answers
793 views

How big is the Bitcoin network?

How big is the Bitcoin network in terms of total number of computers (peers, clients) that are connected together? Are there any network statistics or historical size data available?
3
votes
2answers
736 views

bitcoind hub-nodes

Why is this page blank? http://blockchain.info/hub-nodes Where can I get a list of reliable peers and look at what fees they charge?
3
votes
1answer
178 views

How does Bitcoin protect itself from invalid peers from being broadcasted?

From what I've inferred, is that Bitcoin gets a list of peers from other nodes. What is to prevent a malicious node from Sharing many ip addresses that will cause timeouts and a delay in block ...
3
votes
1answer
144 views

Does a low profit margin on mining reduce the integrity of the blocks stored in the transaction history?

As the mining Bitcoin payout decreases from 50 to zero, what incentive is there for miners to continue operating? Is there a need for miners to continue to operate when the payout decreases to zero? ...
3
votes
1answer
605 views

How to detect a rejected transaction?

If the nodes I connect to don't support the BIP 61 reject message, how do I know that my transaction was eventually rejected by the network (e.g. due to my bugs)? Is there any timeout or whatever ...
3
votes
1answer
508 views

Good resource for understanding the peer to peer protocol sequence

I'm looking for a good explanation or reference on the peer to peer aspects of the two main bitcoin actors- the clients(wallets) and miners. Satoshi's white paper, in section 5. Network, gives a ...
3
votes
0answers
155 views

What is meant by getnetworkinfo: networks: reachable = false

What do all the reachable: false's mean under each network? My node is connecting fine to other peers both in and out, I assume via IPv4 (since I didn't configure anything else special). Is my node ...
2
votes
1answer
209 views

How are messages exactly sent in bitcoin p2p protocol

In order to send a NetMsgType::PING message to a node pnode, we simply invoke the function pnode->PushMessage(NetMsgType::PING) in src/main.cpp This translates into following logic in src/net.h: ...
2
votes
1answer
137 views

How Do Peers Choose Which Peer To Trust?

So the way I understand how the blockchain works is that each new block uses the previous block's hash, which means if my block[100].hash != someone_elses_block[100].hash that means that either I ...
2
votes
1answer
273 views

Can malicious peer hack freshly installed bitcoin-core node

I'm considering two scenarios of hacking freshly installed bitcoin core node. Does freshly installed bitcoin-core node have genesis block included in the installation? This fresh node contacts some ...
2
votes
1answer
722 views

Can we make Sybil attacks virtually impossible?

I suspect that we CAN make them virtually impossible, but that we have not yet done so. We operate on the assumption that computing a private key from the public key is virtually impossible. We also ...
2
votes
1answer
1k views

Total amount of nodes and avarage active peer number

I have 2 questions: Does anyone know where to find a reliable source for finding out a total amount of active bitcoin nodes? How many peers does each active node have in avarage? Is there a limit to ...
2
votes
1answer
178 views

Is there a difference between “In” and “Out” peer connections?

On bitcoin-qt, some peers are called "Out" and some are "In". Is there any difference besides who initiated the connection?
2
votes
1answer
335 views

no IPv6 peers connecting to my node

getnetworkinfo says IPv6 is working on my node: { "name" : "ipv6", "limited" : false, "reachable" : true, "proxy" : "127.0.0.1:9050" } Yet why don't I get any IPv6 peers connecting to my node? ...
2
votes
1answer
1k views

How many peers it MultiBit connected to? Can not send bitcoins

I have received bitcoins from an online wallet and I am now trying to send 0.05 BTC to another address. I have by now figured out that I need to set at least 0.0001 BTC as a sender fee (that error ...
2
votes
2answers
3k views

Finding IP addresses of all bitcoin miners

I understand that the transactions don't have any IP info in them but I am curious to know if it is possible to enumerate over list of all the IP addresses involved in mining?
2
votes
1answer
559 views

What is the NAT traversal technique used by bitcoin

https://bitcointalk.org/index.php?topic=30947.msg23736281#msg23736281 says that incoming port can be opened or UPnP enabled. Is this incoming port opened on the NAT device so that all incoming ...
2
votes
1answer
920 views

Bitcoin peer list

I noticed that a company I have connections with, has an asset (ip) that appears on this bitcoin peer list; http://pastebin.com/HTPjuJBt In laymens terms, what is a peer list, and should I be ...
2
votes
1answer
179 views

Is declining number of peers (hosts) threatening the network?

I found out here that the number of total network hosts basically went down to 1/3 during the last year. Does this mean the network is less secure because fewer people run it despite the total hashing ...
2
votes
0answers
24 views

Setting up node, no connection when announce ip address to peers [closed]

I want to announce my host name when running node. When I set nxt.myAddress=hostname or IPaddress, there are no connection to peers. But when I keep it empty everything is fine.
2
votes
0answers
346 views

Under what circumstances does bitcoin-qt ban a peer? [duplicate]

Under What Circumstances Will Bitcoin-qt Ban A Peer? In my bitcoin-qt wallet, I am noticing that often there are a lot of banned peers. Sometimes I have as many as 10 peers banned within the wallet, ...
2
votes
2answers
328 views

Bitcore-p2p: Peer.connect does not work

I'm trying to run a simple script to connect to a Bitcoin peer, like this one: var bitcore = require('bitcore-lib') var p2p = require('bitcore-p2p') var Peer = p2p.Peer; var peer = new Peer({host: '...
2
votes
1answer
140 views

Multibit HD only sees one peer

Multibit HD is only connecting with one peer. This issue randomly started a few weeks ago. Initially, I had to keep restoring my wallet to a previous date since my balance kept reverting to ...
1
vote
1answer
179 views

Regtest: One node nullifying other node's balance

I'm running 2 bitcoind servers on the same machine, called node0 and node1. In the following I'm listing steps I take and results I get and I'm wondering what is causing one node nullifying other node'...
1
vote
1answer
301 views

Bitcoin core: connect to specific peers from file

I want to launch Bitcoin core connecting to a specific list of peers. I can do this using connect: bitcoind -connect=<IP1> -connect=<IP2> Is there a way I can put the peers I want to ...
1
vote
1answer
118 views

How to make more than 1 nodes of mine connect each other?

Lets say i have 5 nodes running. each node is on its dedicated server and is upto date. and its connected to available peers on the network. How can i make them to connect each other and not to BAN ...
1
vote
1answer
19 views

Bitcoin network resources requirement

Supposing we are alone, could it be possible to run the whole bitcoin network and full capacity of it (maximum transaction per second by different peer) on a low end computer, and how can someone ...
1
vote
1answer
45 views

structure of communicating with bitcoin DNSs to get list of nodes

I want to communicate with bitcoin DNSs to get list of bitcoin nodes. for now I want some example and structure of messages between I and bitcoin DNS. I found two DNS names: dnsseed.bluematt.me ...
1
vote
1answer
51 views

On a low level, how are long chains kept secret and later broadcast during 51% attacks?

I've been reading about the vulnerabilities of PoW crypto, and there's a part of it that I don't understand. Suppose I wanted to stage a 51% attack on Bitcoin (not really feasible, but bear with me). ...
1
vote
2answers
375 views

How bitcoin is peer to peer?

Bitcoin's whitepaper says that "A purely peer-to-peer version of electronic cash would allow online payments to be sent directly from one party to another without going through a financial institution"...
1
vote
2answers
159 views

Should port forwarding for running bitcoin be done also on the ISP's router?

Follow up question on What is the NAT traversal technique used by bitcoin. The network architecture described here https://superuser.com/questions/1109859/2-routers-connected-in-series-and-port-...
1
vote
1answer
1k views

How can I get my peer's ban score for my node?

If I call getpeerinfo through RPC on one of my nodes, it gives me a list of info about my peers, including my peer's "banscore" for each of its peers. I would like to do the reverse. Can I get my ...