correctly set testnet flag for tx template context

This commit is contained in:
moneroexamples 2016-10-12 09:05:47 +08:00
parent 3cc42cfd7f
commit b74976dd50

View file

@ -953,7 +953,10 @@ namespace xmreg {
mstch::map tx_context = construct_tx_context(tx, with_ring_signatures);
mstch::map context {{"txs", mstch::array{}}};
mstch::map context {
{"txs" , mstch::array{}},
{"testnet" , this->testnet}
};
boost::get<mstch::array>(context["txs"]).push_back(tx_context);