diff options
author | stoffu <stoffu@protonmail.ch> | 2018-01-14 13:37:57 +0900 |
---|---|---|
committer | stoffu <stoffu@protonmail.ch> | 2018-01-26 10:58:23 +0900 |
commit | ffc2e5705d9a61413a295d7138100af82956738b (patch) | |
tree | a2947f8b42f3d345603c4c3f38eb36b3bace2146 /src/wallet/wallet2.h | |
parent | Merge pull request #3130 (diff) | |
download | monero-ffc2e5705d9a61413a295d7138100af82956738b.tar.xz |
wallet rpc: show fees when querying incoming transfers
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet2.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index 04d789f18..8ba68d692 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -252,6 +252,7 @@ namespace tools { crypto::hash m_tx_hash; uint64_t m_amount; + uint64_t m_fee; uint64_t m_block_height; uint64_t m_unlock_time; uint64_t m_timestamp; @@ -1144,7 +1145,7 @@ BOOST_CLASS_VERSION(tools::wallet2::transfer_details, 9) BOOST_CLASS_VERSION(tools::wallet2::multisig_info, 1) BOOST_CLASS_VERSION(tools::wallet2::multisig_info::LR, 0) BOOST_CLASS_VERSION(tools::wallet2::multisig_tx_set, 1) -BOOST_CLASS_VERSION(tools::wallet2::payment_details, 2) +BOOST_CLASS_VERSION(tools::wallet2::payment_details, 3) BOOST_CLASS_VERSION(tools::wallet2::pool_payment_details, 1) BOOST_CLASS_VERSION(tools::wallet2::unconfirmed_transfer_details, 7) BOOST_CLASS_VERSION(tools::wallet2::confirmed_transfer_details, 5) @@ -1409,6 +1410,12 @@ namespace boost return; } a & x.m_subaddr_index; + if (ver < 3) + { + x.m_fee = 0; + return; + } + a & x.m_fee; } template <class Archive> |