fix: enabling pushing with enable_pusher works now

This commit is contained in:
moneroexamples 2016-11-28 10:34:49 +08:00
parent be0d868198
commit 3a405627bb

View file

@ -1860,9 +1860,11 @@ public:
return mstch::render(full_page, context); return mstch::render(full_page, context);
} }
if (!testnet) if (this->enable_pusher == false)
{ {
string error_msg = fmt::format("Pushing disabled for mainet network!"); string error_msg = fmt::format(
"Pushing disabled!\n "
"Run explorer with --enable-pusher flag to enable it.");
context["has_error"] = true; context["has_error"] = true;
context["error_msg"] = error_msg; context["error_msg"] = error_msg;