forked from lthn/blockchain
fixed few compilation issues - 3
This commit is contained in:
parent
66fbe640ef
commit
6f4d247715
1 changed files with 17 additions and 11 deletions
|
|
@ -308,6 +308,8 @@ namespace tools
|
|||
END_BOOST_SERIALIZATION()
|
||||
|
||||
};
|
||||
|
||||
|
||||
namespace detail
|
||||
{
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
|
|
@ -322,15 +324,6 @@ namespace tools
|
|||
return std::shared_ptr<transaction_wallet_info>();
|
||||
}
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
inline uint64_t transfer_details_base_to_amount(const transfer_details_base& tdb)
|
||||
{
|
||||
return tdb.amount();
|
||||
}
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
inline std::string transfer_details_base_to_tx_hash(const transfer_details_base& tdb)
|
||||
{
|
||||
return epee::string_tools::pod_to_hex(currency::get_transaction_hash(tdb.m_ptx_wallet_info->m_tx));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -388,6 +381,17 @@ namespace tools
|
|||
return true;
|
||||
return false;
|
||||
}
|
||||
static inline uint64_t transfer_details_base_to_amount(const transfer_details_base& tdb)
|
||||
{
|
||||
return tdb.amount();
|
||||
}
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
static inline std::string transfer_details_base_to_tx_hash(const transfer_details_base& tdb)
|
||||
{
|
||||
return epee::string_tools::pod_to_hex(currency::get_transaction_hash(tdb.m_ptx_wallet_info->m_tx));
|
||||
}
|
||||
|
||||
|
||||
|
||||
BEGIN_KV_SERIALIZE_MAP()
|
||||
KV_SERIALIZE_CUSTOM(m_ptx_wallet_info, const transaction_wallet_info&, detail::transform_ptr_to_value, detail::transform_value_to_ptr)
|
||||
|
|
@ -396,8 +400,8 @@ namespace tools
|
|||
KV_SERIALIZE(m_flags)
|
||||
KV_SERIALIZE(m_amount)
|
||||
KV_SERIALIZE_N(m_zc_info_ptr, "zc_out_info")
|
||||
KV_SERIALIZE_EPHEMERAL_N(uint64_t, detail::transfer_details_base_to_amount, "amount")
|
||||
KV_SERIALIZE_EPHEMERAL_N(std::string, detail::transfer_details_base_to_tx_hash, "tx_id")
|
||||
KV_SERIALIZE_EPHEMERAL_N(uint64_t, transfer_details_base_to_amount, "amount")
|
||||
KV_SERIALIZE_EPHEMERAL_N(std::string, transfer_details_base_to_tx_hash, "tx_id")
|
||||
END_KV_SERIALIZE_MAP()
|
||||
|
||||
BEGIN_BOOST_SERIALIZATION()
|
||||
|
|
@ -411,6 +415,8 @@ namespace tools
|
|||
};
|
||||
|
||||
|
||||
|
||||
|
||||
struct transfer_details_extra_option_htlc_info
|
||||
{
|
||||
std::string origin; //this field filled only if htlc had been redeemed
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue