rpc: do not include output indices for pool txes

Those aren't yet in the blockchain, so will not be found
(and aren't yet known, since it depends on where exactly the
tx will be mined in the next block or blocks)
This commit is contained in:
moneromooo-monero 2016-11-23 18:55:32 +00:00
parent e227d6e7ac
commit 1d9e223944
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -425,7 +425,9 @@ namespace cryptonote
if (req.decode_as_json)
res.txs_as_json.push_back(e.as_json);
// output indices too
// output indices too if not in pool
if (pool_tx_hashes.find(tx_hash) == pool_tx_hashes.end())
{
bool r = m_core.get_tx_outputs_gindexs(tx_hash, e.output_indices);
if (!r)
{
@ -433,6 +435,7 @@ namespace cryptonote
return false;
}
}
}
BOOST_FOREACH(const auto& miss_tx, missed_txs)
{