Bitcoin Forum
May 24, 2024, 04:53:21 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How can I see or detect how many peers have seen a transaction?  (Read 943 times)
Kazimir (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1003



View Profile
March 16, 2014, 06:19:33 PM
 #1

Some clients such as MultiBit or Mycelium show how many peers have seen a certain transaction. To give an indication of its propagation throughout the network.

How do they do this?

In theory, there's no difference between theory and practice. In practice, there is.
Insert coin(s): 1KazimirL9MNcnFnoosGrEkmMsbYLxPPob
jimmyscratchlab
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
March 16, 2014, 08:24:13 PM
 #2



https://en.bitcoin.it/wiki/Network
Kazimir (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1003



View Profile
March 16, 2014, 09:56:49 PM
 #3

Do you mean my Bitcoin node can only tell how many peers have sent a 'getdata' request in response to my node's 'inv' message?

Is there a way I can see or estimate how many nodes have seen someone else's transaction? This would require me knowing about it, of course, but suppose I do. I have just seen someone do a tx and I wanna see how fast it propagates. What are my options?


In theory, there's no difference between theory and practice. In practice, there is.
Insert coin(s): 1KazimirL9MNcnFnoosGrEkmMsbYLxPPob
grau
Hero Member
*****
Offline Offline

Activity: 836
Merit: 1021


bits of proof


View Profile WWW
March 16, 2014, 10:01:22 PM
 #4

Connect to a large number of random nodes and send them getdata for the tx.
Kazimir (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1003



View Profile
March 16, 2014, 10:13:16 PM
 #5

Connect to a large number of random nodes and send them getdata for the tx.
Thanks, makes sense. What's a good way to connect to a large number of nodes? Is there some way I can get a list of nodes, preferably distributed all over the world?

In theory, there's no difference between theory and practice. In practice, there is.
Insert coin(s): 1KazimirL9MNcnFnoosGrEkmMsbYLxPPob
Mike Hearn
Legendary
*
expert
Offline Offline

Activity: 1526
Merit: 1129


View Profile
March 17, 2014, 01:09:52 PM
 #6

bitcoinj just watches for inv messages.
malevolent
can into space
Legendary
*
Offline Offline

Activity: 3472
Merit: 1721



View Profile
March 17, 2014, 09:08:37 PM
 #7

What's a good way to connect to a large number of nodes? Is there some way I can get a list of nodes, preferably distributed all over the world?

Add addnode=<ip> entries in bitcoin.conf, or use the addnode=<ip> argument in command-line, if you want to connect to more than 125 nodes (https://github.com/bitcoin/bitcoin/blob/master/src/net.cpp#L64), then I think you will need to change -maxconnections=<x> to something higher.
Blockchain.info is very well connected so you could add some of the nodes they are connected to: https://blockchain.info/ip-log

Signature space available for rent.
Kazimir (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1003



View Profile
March 18, 2014, 10:01:41 AM
 #8

Does bitcoind / Bitcoin-Qt by default relay *all* txs it receives? I mean not just the tx I send from my wallet, but also forwarding any txs it receives from any of its connected nodes to all other nodes?

Blockchain.info is very well connected so you could add some of the nodes they are connected to: https://blockchain.info/ip-log
Not at the moment Sad (but good tip, thanks Wink)

In theory, there's no difference between theory and practice. In practice, there is.
Insert coin(s): 1KazimirL9MNcnFnoosGrEkmMsbYLxPPob
malevolent
can into space
Legendary
*
Offline Offline

Activity: 3472
Merit: 1721



View Profile
March 18, 2014, 01:02:59 PM
 #9

Blockchain.info is very well connected so you could add some of the nodes they are connected to: https://blockchain.info/ip-log
Not at the moment Sad (but good tip, thanks Wink)

http://webcache.googleusercontent.com/search?q=cache%3Ahttps%3A%2F%2Fblockchain.info%2Fip-log&oq=cache%3Ahttps%3A%2F%2Fblockchain.info%2Fip-log&aqs=chrome..69i57j69i58.1512j0j4&sourceid=chrome&espv=210&es_sm=122&ie=UTF-8

other pages also seem to be cached, though I only checked the first three.

Signature space available for rent.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!