Bitcoin Forum
November 19, 2024, 02:38:01 PM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How extract content of peer.dat?  (Read 1126 times)
Mohareb (OP)
Full Member
***
Offline Offline

Activity: 224
Merit: 100



View Profile
April 12, 2016, 02:12:03 PM
Last edit: April 12, 2016, 03:47:38 PM by Mohareb
 #1

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 ?

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
PRIMEDICE
The Premier Bitcoin Gambling Experience - Most Trusted & Popular Bitcoin Game @PrimeDice
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Amph
Legendary
*
Offline Offline

Activity: 3248
Merit: 1070



View Profile
April 13, 2016, 06:07:32 AM
 #2

why you need the peer data to get the node, you can check them in the console, via getpeerinfo
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
April 13, 2016, 02:27:52 PM
 #3

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

Im not really here, its just your imagination.
RJX
Legendary
*
Offline Offline

Activity: 1078
Merit: 1003


View Profile
April 14, 2016, 11:53:42 AM
 #4

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.
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!