diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-12-09 14:56:44 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-12-12 01:56:59 +0000 |
commit | 987c3139dce921c98b4a24bab52354102f21fb1e (patch) | |
tree | ec034e7dbd49f1717c1da220d6c99d91cbfea6bc /src/cryptonote_basic/cryptonote_format_utils.h | |
parent | Merge pull request #6174 (diff) | |
download | monero-987c3139dce921c98b4a24bab52354102f21fb1e.tar.xz |
print_coinbase_tx_sum now supports 128 bits sums
The tail emission will bring the total above 64 bits
Diffstat (limited to '')
-rw-r--r-- | src/cryptonote_basic/cryptonote_format_utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_basic/cryptonote_format_utils.h b/src/cryptonote_basic/cryptonote_format_utils.h index 29e4def64..8ed3b0b43 100644 --- a/src/cryptonote_basic/cryptonote_format_utils.h +++ b/src/cryptonote_basic/cryptonote_format_utils.h @@ -38,6 +38,7 @@ #include "crypto/crypto.h" #include "crypto/hash.h" #include <unordered_map> +#include <boost/multiprecision/cpp_int.hpp> namespace epee { @@ -139,6 +140,7 @@ namespace cryptonote unsigned int get_default_decimal_point(); std::string get_unit(unsigned int decimal_point = -1); std::string print_money(uint64_t amount, unsigned int decimal_point = -1); + std::string print_money(const boost::multiprecision::uint128_t &amount, unsigned int decimal_point = -1); //--------------------------------------------------------------- template<class t_object> bool t_serializable_object_from_blob(t_object& to, const blobdata& b_blob) |