This commit is contained in:
Doug Hoyte
2023-03-08 16:25:34 -05:00
parent 6a02490a8c
commit 4ab168861c
4 changed files with 215 additions and 7 deletions

View File

@ -65,7 +65,7 @@ int main() {
std::cerr << "CLIENT -> RELAY: " << q.size() << " bytes" << std::endl;
{
std::vector<std::string> have, need;
q = x2.handleQuery(q, have, need);
q = x2.reconcile(q, have, need);
// q and have are returned to client
for (auto &id : have) {
@ -83,7 +83,7 @@ int main() {
std::cerr << "RELAY -> CLIENT: " << q.size() << " bytes" << std::endl;
std::vector<std::string> have, need;
q = x1.handleQuery(q, have, need);
q = x1.reconcile(q, have, need);
for (auto &id : need) {
std::cout << "xor,1,NEED," << to_hex(id) << "\n";