mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-19 01:34:57 +00:00
use negentropy protocol 0
This commit is contained in:
2
external/negentropy
vendored
2
external/negentropy
vendored
Submodule external/negentropy updated: 540753c66a...bdd421c1fb
@ -134,7 +134,13 @@ void cmd_sync(const std::vector<std::string> &subArgs) {
|
|||||||
if (!doUp) have.clear();
|
if (!doUp) have.clear();
|
||||||
if (!doDown) need.clear();
|
if (!doDown) need.clear();
|
||||||
|
|
||||||
if (neMsg.size() == 0) {
|
if (neMsg) {
|
||||||
|
ws.send(tao::json::to_string(tao::json::value::array({
|
||||||
|
"NEG-MSG",
|
||||||
|
"N",
|
||||||
|
to_hex(*neMsg),
|
||||||
|
})));
|
||||||
|
} else {
|
||||||
syncDone = true;
|
syncDone = true;
|
||||||
LI << "Set reconcile complete. Have " << totalHaves << " need " << totalNeeds;
|
LI << "Set reconcile complete. Have " << totalHaves << " need " << totalNeeds;
|
||||||
|
|
||||||
@ -142,12 +148,6 @@ void cmd_sync(const std::vector<std::string> &subArgs) {
|
|||||||
"NEG-CLOSE",
|
"NEG-CLOSE",
|
||||||
"N",
|
"N",
|
||||||
})));
|
})));
|
||||||
} else {
|
|
||||||
ws.send(tao::json::to_string(tao::json::value::array({
|
|
||||||
"NEG-MSG",
|
|
||||||
"N",
|
|
||||||
to_hex(neMsg),
|
|
||||||
})));
|
|
||||||
}
|
}
|
||||||
} else if (msg.at(0) == "OK") {
|
} else if (msg.at(0) == "OK") {
|
||||||
inFlightUp--;
|
inFlightUp--;
|
||||||
|
Reference in New Issue
Block a user