Bitcoin Forum

Other => Beginners & Help => Topic started by: Mohareb on April 12, 2016, 02:12:03 PM



Title: How extract content of peer.dat?
Post by: Mohareb on April 12, 2016, 02:12:03 PM
How extract content of peer.dat?

for example: Someone gave me some nodes from his peer.dat file. How could he find it from peer.dat file ?


Title: Re: How extract content of peer.dat?
Post by: Amph on April 13, 2016, 06:07:32 AM
why you need the peer data to get the node, you can check them in the console, via getpeerinfo


Title: Re: How extract content of peer.dat?
Post by: shorena on April 13, 2016, 02:27:52 PM
why you need the peer data to get the node, you can check them in the console, via getpeerinfo

getpeerinfo is just the connected nodes, the peers.dat has all known nodes.

Did a quick search, but it seems you will need to read the source to understand the format as its bitcoin specific[1].

[1] https://bitcointalk.org/index.php?topic=119525.msg1287284#msg1287284


Title: Re: How extract content of peer.dat?
Post by: RJX on April 14, 2016, 11:53:42 AM
getpeerinfo is just the connected nodes, the peers.dat has all known nodes.

I think net.ccp is the file where the nodes are 'hardcoded'

Somewhere around line 1195.

But I may be misunderstanding the question.