rpc: omit irrelevant fields for pool txes in gettransactions

This commit is contained in:
moneromooo-monero 2019-04-06 16:13:17 +00:00
parent 565085245a
commit 8a61b33d8e
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -375,10 +375,16 @@ namespace cryptonote
KV_SERIALIZE(as_json)
KV_SERIALIZE(in_pool)
KV_SERIALIZE(double_spend_seen)
KV_SERIALIZE(block_height)
KV_SERIALIZE(block_timestamp)
KV_SERIALIZE(output_indices)
KV_SERIALIZE(relayed)
if (!this_ref.in_pool)
{
KV_SERIALIZE(block_height)
KV_SERIALIZE(block_timestamp)
KV_SERIALIZE(output_indices)
}
else
{
KV_SERIALIZE(relayed)
}
END_KV_SERIALIZE_MAP()
};