diff options
| author | Alexander Blair <snipa@jagtech.io> | 2020-02-28 19:48:10 -0800 |
|---|---|---|
| committer | Alexander Blair <snipa@jagtech.io> | 2020-02-28 19:48:11 -0800 |
| commit | 4371ac4265b7abe425697a31f9455d863db04d6b (patch) | |
| tree | 55640d795da21941ea37d7bd787479bd6e6b0f5c /src/cryptonote_core/cryptonote_core.cpp | |
| parent | 2deb02f81dbeb83878b1cbe7c870172876237cf9 (diff) | |
| parent | 987c3139dce921c98b4a24bab52354102f21fb1e (diff) | |
| download | monzero-core-4371ac4265b7abe425697a31f9455d863db04d6b.tar.gz monzero-core-4371ac4265b7abe425697a31f9455d863db04d6b.tar.xz monzero-core-4371ac4265b7abe425697a31f9455d863db04d6b.zip | |
Merge pull request #6225
987c3139 print_coinbase_tx_sum now supports 128 bits sums (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
| -rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index 9cfa839b2..8b1613b4b 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -1175,10 +1175,10 @@ namespace cryptonote return m_mempool.check_for_key_images(key_im, spent); } //----------------------------------------------------------------------------------------------- - std::pair<uint64_t, uint64_t> core::get_coinbase_tx_sum(const uint64_t start_offset, const size_t count) + std::pair<boost::multiprecision::uint128_t, boost::multiprecision::uint128_t> core::get_coinbase_tx_sum(const uint64_t start_offset, const size_t count) { - uint64_t emission_amount = 0; - uint64_t total_fee_amount = 0; + boost::multiprecision::uint128_t emission_amount = 0; + boost::multiprecision::uint128_t total_fee_amount = 0; if (count) { const uint64_t end = start_offset + count - 1; @@ -1200,7 +1200,7 @@ namespace cryptonote }); } - return std::pair<uint64_t, uint64_t>(emission_amount, total_fee_amount); + return std::pair<boost::multiprecision::uint128_t, boost::multiprecision::uint128_t>(emission_amount, total_fee_amount); } //----------------------------------------------------------------------------------------------- bool core::check_tx_inputs_keyimages_diff(const transaction& tx) const |
