diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-11-10 19:39:09 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-11-24 14:03:52 +0000 |
commit | 01dc8297847bea646f744f9d777663526f90a94a (patch) | |
tree | b22602c202b404dfa20a979e328d3db182688d79 /src/cryptonote_core | |
parent | serialization: add std::set and std::unordered_set serialization (diff) | |
download | monero-01dc8297847bea646f744f9d777663526f90a94a.tar.xz |
wallet: transfer RPC can now return tx metadata (pending_tx)
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r-- | src/cryptonote_core/cryptonote_tx_utils.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_tx_utils.h b/src/cryptonote_core/cryptonote_tx_utils.h index 9a3b2484d..8d9a1e332 100644 --- a/src/cryptonote_core/cryptonote_tx_utils.h +++ b/src/cryptonote_core/cryptonote_tx_utils.h @@ -53,6 +53,20 @@ namespace cryptonote rct::key mask; //ringct amount mask void push_output(uint64_t idx, const crypto::public_key &k, uint64_t amount) { outputs.push_back(std::make_pair(idx, rct::ctkey({rct::pk2rct(k), rct::zeroCommit(amount)}))); } + + BEGIN_SERIALIZE_OBJECT() + FIELD(outputs) + FIELD(real_output) + FIELD(real_out_tx_key) + FIELD(real_out_additional_tx_keys) + FIELD(real_output_in_tx_index) + FIELD(amount) + FIELD(rct) + FIELD(mask) + + if (real_output >= outputs.size()) + return false; + END_SERIALIZE() }; struct tx_destination_entry |