Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: tcatm on June 02, 2011, 06:33:39 AM



Title: Bitcoin Activity Map
Post by: tcatm on June 02, 2011, 06:33:39 AM
http://eu1.bitcoincharts.com/map/

Works only in Chrome (needs websocket).

Currently, it also shows forwarded transactions and blocks thus you can see how they spread through the network. I might change that in the future.


Title: Re: Bitcoin Activity Map
Post by: N12 on June 02, 2011, 06:42:38 AM
Great stuff. Small donation sent.


Title: Re: Bitcoin Activity Map
Post by: Raulo on June 02, 2011, 06:55:17 AM
What is it supposed to do when it's working? I've downloaded Chrome just to see what it does and I can only see a blank map.

I guess you are doing some Bitcoin network monitoring to see, where the transactions and blocks come from. Do you have several such listening nodes?


Title: Re: Bitcoin Activity Map
Post by: tcatm on June 02, 2011, 06:58:40 AM
Try a "send to self" transaction. There should be yellow dots appearing all over the map from nodes that forward that transaction.

edit: Sample:   http://i.imgur.com/69Y0T.png


Title: Re: Bitcoin Activity Map
Post by: Raulo on June 02, 2011, 07:05:55 AM
Not working. Blank map. Chrome 11.0.696.71, Linux 64-bit.

I have zero experience with Chrome. Do I need to download a plugin?


Title: Re: Bitcoin Activity Map
Post by: tcatm on June 02, 2011, 07:09:31 AM
I'm also running Chrome 11 on 64-bit Linux. It should work without plugins. Can you rightclick on the page -> "Inspect Element" -> Console and check whether it says "connected"?


Title: Re: Bitcoin Activity Map
Post by: Raulo on June 02, 2011, 07:26:33 AM
I'm also running Chrome 11 on 64-bit Linux. It should work without plugins. Can you rightclick on the page -> "Inspect Element" -> Console and check whether it says "connected"?
Only blinking cursor.



Title: Re: Bitcoin Activity Map
Post by: tcatm on June 02, 2011, 07:29:41 AM
Hrm, can you open the Network tab, refresh the page and check if a line with ws://eu1.bitcoincharts.... appears and that it's status code is 101?


Title: Re: Bitcoin Activity Map
Post by: Raulo on June 02, 2011, 07:35:32 AM
Hrm, can you open the Network tab, refresh the page and check if a line with ws://eu1.bitcoincharts.... appears and that it's status code is 101?

Status: Pending


Title: Re: Bitcoin Activity Map
Post by: tcatm on June 02, 2011, 07:39:24 AM
Can you retry? I changed some TCP settings on the server that *might* be the problem.


Title: Re: Bitcoin Activity Map
Post by: SgtSpike on June 02, 2011, 07:46:23 AM
That's a fascinating chart/world thing, thanks for sharing!  I just sent myself 0.10 BTC and saw the world light up in yellow.  :P

I am assuming it doesn't show all of the nodes, but how do you even begin to gather information from some of them?


Title: Re: Bitcoin Activity Map
Post by: tcatm on June 02, 2011, 07:50:39 AM
I hacked my python client to connect to as many nodes as possible. Currently, it's connected to about 900 nodes. Above that, it seems to take some time to discover new nodes, that are accepting connections.


Title: Re: Bitcoin Activity Map
Post by: Raulo on June 02, 2011, 07:57:34 AM
Working now. Cool.

Is there a way to define how long are the dots lit?




Title: Re: Bitcoin Activity Map
Post by: tcatm on June 02, 2011, 07:59:55 AM
You could save the page locally and change the fadeOut line. Maybe I'll add some control feature tomorrow. Raw transactions next to the map (like on the list of unconfirmed transactions) might be useful, too.


Title: Re: Bitcoin Activity Map
Post by: joey80 on June 02, 2011, 08:04:59 AM
I have been looking looking around for this kind of information.


Title: Re: Bitcoin Activity Map
Post by: SgtSpike on June 02, 2011, 08:15:55 AM
I hacked my python client to connect to as many nodes as possible. Currently, it's connected to about 900 nodes. Above that, it seems to take some time to discover new nodes, that are accepting connections.
Makes sense.  Very nicely done though, I like it.  :)


Title: Re: Bitcoin Activity Map
Post by: IIOII on June 02, 2011, 08:45:08 AM
Any chance to get this for non-chrome users?
 :)


Title: Re: Bitcoin Activity Map
Post by: spleeder on June 02, 2011, 09:06:34 AM
Really nice what you've done there.


Title: Re: Bitcoin Activity Map
Post by: bitcoinBull on June 04, 2011, 06:12:35 AM
BUMP


You continue to outdo yourself tcatm.

0.256 BTC Sent (http://blockexplorer.com/tx/458e0dedf07725656e66db654addac2b8eda83ce99c52f9b8acf3a4ff21d1742).  Lit up the map from my geoip.


First tip from me.  Long overdue for bitcoincharts.com


Title: Re: Bitcoin Activity Map
Post by: Crs on June 04, 2011, 09:26:23 AM
bump for awesomeness  8)
(a screensaver would be cool too)


Title: Re: Bitcoin Activity Map
Post by: ArsenShnurkov on June 04, 2011, 11:48:25 AM
This is all wrong.

Transaction is not a point (yellow point). Transaction is a line with two ends (from and to).

I wish to see transcontinental transactions!


Title: Re: Bitcoin Activity Map
Post by: Vladimir on June 04, 2011, 11:52:29 AM
bump for awesomeness  8)
(a screensaver would be cool too)
+1

and make is that it can be scaled fullscreen and persistently placed in background a-la wallpaper


Title: Re: Bitcoin Activity Map
Post by: bitcoinBull on June 04, 2011, 11:54:57 AM
This is all wrong.

Transaction is not a point (yellow point). Transaction is a line with two ends (from and to).

I wish to see transcontinental transactions!

That's not possible.  The ends between transactions are bitcoin addresses, which do not have gps coordinates.

This highlights the geoip's of nodes broadcasting and re-broadcasting transactions throughout the network.


Title: Re: Bitcoin Activity Map
Post by: Vladimir on June 04, 2011, 11:57:18 AM
shouldn't it be only new (first seen) transactions?


Title: Re: Bitcoin Activity Map
Post by: Raulo on June 04, 2011, 11:59:46 AM
shouldn't it be only new (first seen) transactions?

Maybe it should but then it wouldn't blink so much :)


Title: Re: Bitcoin Activity Map
Post by: bitcoinBull on June 04, 2011, 12:04:22 PM
shouldn't it be only new (first seen) transactions?

I believe it is.  These aren't confirmations of transactions (those are the red dots).  Just the initial broadcasts before they are confirmed by block inclusion.


Title: Re: Bitcoin Activity Map
Post by: bittersweet on June 04, 2011, 12:04:28 PM
This highlights the geoip's of nodes broadcasting and re-broadcasting transactions throughout the network.

So basically it's activity of nodes connected to his node? Thanks, now I get it :)
Would be nice to have a map like this implemented in client :D

It also works on Opera 11.11 for me, but you might have to enable web sockets:
opera:config#UserPrefs|EnableWebSockets



Title: Re: Bitcoin Activity Map
Post by: tcatm on June 05, 2011, 03:36:36 AM
shouldn't it be only new (first seen) transactions?

Maybe it should but then it wouldn't blink so much :)

Yep, that's why I made every re-broadcast show up. Only first seen was boring and I wouldn't be able to tell whether it's really the first node anyway so a transaction from China could show up somewhere in Australia first. The same applies for blocks.


Title: Re: Bitcoin Activity Map
Post by: Vladimir on June 05, 2011, 03:38:03 AM
cool, how about following bitcoin monitor example and adding bitcoin trades on exchanges?


Title: Re: Bitcoin Activity Map
Post by: bitcoinBull on June 05, 2011, 03:47:31 AM
cool, how about following bitcoin monitor example and adding bitcoin trades on exchanges?



Trades on exchanges don't have geoips.


Title: Re: Bitcoin Activity Map
Post by: Vladimir on June 05, 2011, 09:10:54 AM
cool, how about following bitcoin monitor example and adding bitcoin trades on exchanges?
Trades on exchanges don't have geoips.

Not true. There are many exchanges which are located in different parts of the word. Mtgox trades would light up in Japan (or wherever their servers are maybe) Britcoin in London, etc...