mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
git disable tx pushing for mainet, but leave it for testnet
This commit is contained in:
parent
bc8c58f807
commit
02f022cbe9
1 changed files with 10 additions and 0 deletions
10
src/page.h
10
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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue