3 Bootstrap the dht from set of static nodes
10 uses NetAddr
,ServerLoop
,DHT
,SysUtils
;
18 const bsfn
='bootstrap.txt';
26 writeln('BootStatic: Error opening file '+bsfn
);
30 while not eof(bs
) do begin
32 try addr
.FromString(line
);
33 except on eConvertError
do begin
34 writeln('BootStatic: ConvertError ',line
,' to tNetAddr');
37 DHT
.NodeBootstrap(addr
);