From 7bd6efe3130bd8637601091251d455eba5981a8f Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 11 Jun 2015 21:51:14 +0100 Subject: account: add a couple consts --- src/cryptonote_core/account.cpp | 4 ++-- src/cryptonote_core/account.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cryptonote_core') diff --git a/src/cryptonote_core/account.cpp b/src/cryptonote_core/account.cpp index b68103dda..313d803a5 100644 --- a/src/cryptonote_core/account.cpp +++ b/src/cryptonote_core/account.cpp @@ -98,13 +98,13 @@ DISABLE_VS_WARNINGS(4244 4345) return m_keys; } //----------------------------------------------------------------- - std::string account_base::get_public_address_str(bool testnet) + std::string account_base::get_public_address_str(bool testnet) const { //TODO: change this code into base 58 return get_account_address_as_str(testnet, m_keys.m_account_address); } //----------------------------------------------------------------- - std::string account_base::get_public_integrated_address_str(const crypto::hash &payment_id, bool testnet) + std::string account_base::get_public_integrated_address_str(const crypto::hash &payment_id, bool testnet) const { //TODO: change this code into base 58 return get_account_integrated_address_as_str(testnet, m_keys.m_account_address, payment_id); diff --git a/src/cryptonote_core/account.h b/src/cryptonote_core/account.h index 0f36029b5..909fa7ef6 100644 --- a/src/cryptonote_core/account.h +++ b/src/cryptonote_core/account.h @@ -59,8 +59,8 @@ namespace cryptonote account_base(); crypto::secret_key generate(const crypto::secret_key& recovery_key = crypto::secret_key(), bool recover = false, bool two_random = false); const account_keys& get_keys() const; - std::string get_public_address_str(bool testnet); - std::string get_public_integrated_address_str(const crypto::hash &payment_id, bool testnet); + std::string get_public_address_str(bool testnet) const; + std::string get_public_integrated_address_str(const crypto::hash &payment_id, bool testnet) const; uint64_t get_createtime() const { return m_creation_timestamp; } void set_createtime(uint64_t val) { m_creation_timestamp = val; } -- cgit v1.2.3