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

This commit is contained in:
moneroexamples 2016-10-26 07:35:46 +08:00
parent bc8c58f807
commit 02f022cbe9
1 changed files with 10 additions and 0 deletions

View File

@ -1852,6 +1852,16 @@ namespace xmreg {
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;
bool r = serialization::parse_binary(std::string(