fix: enabling pushing with enable_pusher works now

master
moneroexamples 8 years ago
parent be0d868198
commit 3a405627bb

@ -1860,9 +1860,11 @@ public:
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["error_msg"] = error_msg;

Loading…
Cancel
Save