More root topology stuff.

This commit is contained in:
Adam Ierymenko 2014-08-07 20:14:24 -04:00
parent 8c9d3146df
commit f0ebb0b0f1
4 changed files with 170 additions and 5 deletions

View file

@ -23,7 +23,7 @@ int main(int argc,char **argv)
std::string buf;
if (!Utils::readFile("topology.secret",buf)) {
std::cout << "Cannot read topology.secret" << std::endl;
std::cerr << "Cannot read topology.secret" << std::endl;
return 1;
}
Identity topologyAuthority(buf);
@ -36,7 +36,7 @@ int main(int argc,char **argv)
if ((sn->first.length() == 10)&&(!sn->second)) {
buf.clear();
if (!Utils::readFile((std::string("supernodes/")+sn->first).c_str(),buf)) {
std::cout << "Cannot read supernodes/" << sn->first << std::endl;
std::cerr << "Cannot read supernodes/" << sn->first << std::endl;
return 1;
}
supernodes[sn->first] = buf;
@ -45,7 +45,7 @@ int main(int argc,char **argv)
topology["supernodes"] = supernodes.toString();
if (!topology.sign(topologyAuthority)) {
std::cout << "Unable to sign!" << std::endl;
std::cerr << "Unable to sign!" << std::endl;
return 1;
}