>>>>> "m" == moritz <[EMAIL PROTECTED]> writes:
>> Restarting your node means you re-hit the inform.php, which
>> means you get 10 more new, fresh
m> not very useful, since you have no associated keys
You know, I prefer when people correct me that they actually know what
they're talking about.
Think about what you said for a second. If it's true, and new
addresses added into your data store have no associated keys (so they
can't be routed to), how do nodes ever get ANY routing information to
begin with? How do they ever find addresses to connect to? What is the
use of inform.php or nodes.config at all?
The deal is that when your node launches, and reads nodes.config
and/or inform.php, it actually DOES add key-address pairs to the data
store. The keys it adds are just the address itself. So, it munges up
the string "tcp/10.0.1.1:10101" into a big, hairy internal key, and
then maps that key to the address "tcp/10.0.1.1:10101". That way, you
have some dummy "seed" keys that can be used for comparison and
routing.
See, watch how it works:
---8<---
try {
String nodeFile = params.getParam("nodeFile", defaultNodeFile);
BufferedReader br=new BufferedReader(new FileReader(nodeFile));
Key tname;
SHA1 sha=new SHA1(true);
while(br.ready()) {
String addrstr=br.readLine();
addrstr=addrstr.trim();
if(!addrstr.equals("")) {
tname = KHK.makeKHK(addrstr);
if(n.ds.searchRef(tname)==null)
at.put(addrstr, tname);
}
}
} catch(IOException e) {}
Enumeration iterator = at.keys();
while(iterator.hasMoreElements()) {
String addr=(String)iterator.nextElement();
try {
n.ds.put((Key)at.get(addr), new NodeReference(addr), null);
} catch (IllegalArgumentException e) {
Core.logger.log(null, "Bad node reference read from "
+ "datastore initialization file.",
Logger.MINOR);
}catch(Exception e) {
e.printStackTrace();
}
}
---8<---
Since these aren't legal Freenet keys, they won't actually be used to
store data (note the null data entity). They're just little nuggets of
routing table data that allow the node to remember some addresses.
>> node addresses to use. This is good for your node.
m> medoubts
Youwrong.
~Mr. Bad
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mr. Bad <[EMAIL PROTECTED]> | Pigdog Journal | http://pigdog.org/
"Your description of coffee is how you interpret Sex."
-- "Personality Quiz" chain letter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
Chat mailing list
[EMAIL PROTECTED]
http://lists.freenetproject.org/mailman/listinfo/chat