More root topology stuff.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user