git disable tx pushing for mainet, but leave it for testnet

master
moneroexamples 8 years ago
parent bc8c58f807
commit 02f022cbe9

@ -1852,6 +1852,16 @@ namespace xmreg {
return mstch::render(full_page, context); return mstch::render(full_page, context);
} }
if (!testnet)
{
string error_msg = fmt::format("Pushing disabled for mainet network!");
context["has_error"] = true;
context["error_msg"] = error_msg;
return mstch::render(full_page, context);
}
::tools::wallet2::signed_tx_set signed_txs; ::tools::wallet2::signed_tx_set signed_txs;
bool r = serialization::parse_binary(std::string( bool r = serialization::parse_binary(std::string(

Loading…
Cancel
Save