From 02f022cbe9c7983069334c7a2cc57d871260de22 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Wed, 26 Oct 2016 07:35:46 +0800 Subject: [PATCH] git disable tx pushing for mainet, but leave it for testnet --- src/page.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/page.h b/src/page.h index d29b377..177ac6e 100644 --- a/src/page.h +++ b/src/page.h @@ -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(