Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [peers]

The tag has no usage guidance.

0
votes
1answer
18 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
68 views

Altcoin clone peer connections limited to 1

I cloned an altcoin and set up a network of 7 peers. One of the clients is connected to a pool and is mining the coin. All the other clients are connected to the pool one and are syncing and ...
1
vote
3answers
399 views

How to run multiple node in same machine?

I have created an altcoin base on litecoin source code. I want to test it in multiple node to test peers of each node weather each node can connect to each other. So I try to run "mycoind" in multiple ...
0
votes
1answer
64 views

Why are some of my peers rejecting this CSV transaction?

The CSV-redeeming TX I broadcast: https://www.blocktrail.com/tBTC/tx/807d464fff227ce98cfb5f1292069e2793e99f21b0539a1729cc460af32add77 The locktime was set for ten minutes, and the redeeming tx (...
0
votes
1answer
35 views

Unable to find peers when connecting through tor proxy

I have tor running as a service on my computer and start bitcoind with -proxy=127.0.0.1:9050 but it fails to find any seeds through DNS or anything during startup, and even after leaving it on for ...
2
votes
1answer
138 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 ...
3
votes
2answers
131 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
2answers
39 views

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

Pretty much the title, i have a full node v 0.17.1 running 12-14 hrs/day and i was wondering if is helpfull, for privacy or for whatever reason, to add peers (maybe from https://bitnodes.earn.com/...
1
vote
1answer
60 views

Why connected node count have dropped since august 1st?

before 1st august i used to connect to 55+ nodes on my bitcoin-core, even if i kept the bitcoin-core running for 12 hours. but after 1st of august, the connected nodes count is not going above 15-23 ...
1
vote
0answers
83 views

It's October 2018. ./bitcoin-qt -reindex-chainstate takes forever. Is there a way to speed this up?

Current version: Bitcoin Core 0.16.3 I think I have a corrupted blockchain download as my VM box was shut down in the middle of syncing. Which is why I'm doing a -reindex-chainstate I have the ...
1
vote
0answers
28 views

How to set up a gateway node?

I have two nodes running in my local machine. one public facing and another connected ONLY to the public facing node. I ensure they are whitelisted and in different ports. the nodes connect just fine, ...
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 ...
2
votes
0answers
20 views

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

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.
1
vote
1answer
36 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 ...
0
votes
1answer
81 views

Unwanted peers connecting to Altcoin

I am building an altcoin using the litecoin source code. I have removed all of the Emplace Seed calls in chainparams.cpp for DNS seeding, changed my default node communication port to port 421 and ...
1
vote
2answers
149 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-...
0
votes
1answer
39 views

Is a peer connection maintained for the life of the node, or is it recreated on every request?

Lets assume we have 2 bitcoin nodes, A and B. A is already up, and B is now coming up. B lists A as a peer node and attempts to establish a connection. A accepts, a handshake is completed and they ...
8
votes
5answers
2k 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 ...
1
vote
1answer
192 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
48 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). ...
2
votes
1answer
119 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 ...
1
vote
1answer
70 views

Does Bitcoin limit the number of parallel connections from the same IP?

Is there a measure in place to prevent an adversary from connecting to a Bitcoin node many times in parallel, thus saturating its open connection slots?
2
votes
2answers
2k 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?
1
vote
1answer
832 views

bitcoin core node cannot route to peers

I'm trying to sync a new full node in the cloud, however it's syncing a lot slower than I am used to: I am roughly at 70,000 blocks after about 12 hours. It doesn't seem to be slow IO, iotop shows ...
0
votes
2answers
43 views

Can cryptocurrencies never be fully decentralized because finding peers is centralized?

When initially running a cryptocurrency client, it needs to fetch peers from a centralized source. If an attacker gains control of all of a client's default peers servers, they would be able to ...
1
vote
1answer
130 views

Sending RPC-JSON Commands to Bitcoin Peers

Is it possible to send some commands to Bitcoin Peers? for example decoderawtransaction command?
1
vote
0answers
227 views

Bitcoin ABC stucked on connect to peer

So i have a testnet bitcoin cash that i just put txindex=1 (because a api requires this) and it stuck on block 1155875 and I restart the core and even follow the step in this thread: https://www....
2
votes
0answers
263 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, ...
1
vote
2answers
354 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"...
0
votes
1answer
333 views

How to reset node information in Bitcoin Core?

I think I've just put the wrong node IPs through console and I forgot all the IPs. I would like to reset all the node information to the initial. Should I just delete peers.dat?
2
votes
1answer
253 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
468 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 ...
1
vote
0answers
119 views

How many peers does bitcoind try to connect to?

Let's say a new node try to connect to the network. Since it doesn't have any node in its peers.dat it makes a request to the DNS seeder and receives a list of addresses. Now, how many of these ...
1
vote
0answers
21 views

What is the minimum amount of network messaging needed to get the latest block hash from a node?

Reference: https://en.bitcoin.it/wiki/Protocol_documentation#inv I want to be able to write the simplest possible script that is able to contact a Bitcoin full node (given it's IP and port) and get ...
1
vote
1answer
113 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 ...
0
votes
1answer
76 views

What happens when tx is broadcasted whose input is not yet received by mempool or are unknown?

lets say, there are 2 transactions tx1 address1 -> address2 tx2 address2 -> address3 our mempool doesnt have the tx1 yet, but i try to create a tx2 and broadcast it. what will happen ? ...
0
votes
1answer
482 views

Why there is only 8 peers in bitcoind?

I set maxconnections=125 in bitcoin.conf but still has only 8 connections in nodelist. Please tell why?
0
votes
1answer
263 views

Are incoming connections required for mining?

I am setting up a RPi3 Mining node for fun. I know that it will have less than 8 connections that are outgoing. I know that if I was able to configure my network and router to allow incoming ...
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 ...
0
votes
1answer
34 views

Negate the need for blockchain explores and full blockchain syncing for simple queries

Rather than download the full blockchain or a pruned version; would it be viable to peer-to-peer ask 'what is this block' or 'what is this tx'? We download the full blockchain from several peers so ...
1
vote
1answer
123 views

Idea on how to keep my altcoin private, make it impossible for others to mine even if they have my altcoin's source code

I've been doing freelance to create an altcoin and my client wants this new coin to be private which means only authorized users can mine and use the coin. What I've been doing so far is to make a new ...
2
votes
2answers
287 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
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 ...
5
votes
1answer
552 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 ...
2
votes
1answer
817 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 ...
4
votes
1answer
531 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 ...
3
votes
0answers
146 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 ...
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? ...
5
votes
1answer
527 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....
7
votes
1answer
3k 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 ...