aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2024-01-18 18:02:31 -0500
committerluigi1111 <luigi1111w@gmail.com>2024-01-18 18:02:31 -0500
commit8ee57110b055c485bcb9b4f9ab325851b6132817 (patch)
tree401a5fdc47ca8976cc8c95ecef9ef1ccc6308d82 /src/rpc
parentMerge pull request #9076 (diff)
parentserialization: remove container wrappers and serialize directly (diff)
downloadmonero-8ee57110b055c485bcb9b4f9ab325851b6132817.tar.xz
Merge pull request #9077
2525200 serialization: remove container wrappers and serialize directly (jeffro256)
Diffstat (limited to '')
-rw-r--r--src/rpc/rpc_payment.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rpc/rpc_payment.h b/src/rpc/rpc_payment.h
index 4ead5a344..a4cc6db57 100644
--- a/src/rpc/rpc_payment.h
+++ b/src/rpc/rpc_payment.h
@@ -148,8 +148,8 @@ namespace cryptonote
template <class t_archive>
inline void serialize(t_archive &a, const unsigned int ver)
{
- a & m_client_info.parent();
- a & m_hashrate.parent();
+ a & m_client_info;
+ a & m_hashrate;
a & m_credits_total;
a & m_credits_used;
a & m_nonces_good;
@@ -177,9 +177,9 @@ namespace cryptonote
cryptonote::account_public_address m_address;
uint64_t m_diff;
uint64_t m_credits_per_hash_found;
- serializable_unordered_map<crypto::public_key, client_info> m_client_info;
+ std::unordered_map<crypto::public_key, client_info> m_client_info;
std::string m_directory;
- serializable_map<uint64_t, uint64_t> m_hashrate;
+ std::map<uint64_t, uint64_t> m_hashrate;
uint64_t m_credits_total;
uint64_t m_credits_used;
uint64_t m_nonces_good;