mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
Merge pull request #3 from NoodleDoodleNoodleDoodleNoodleDoodleNoo/patch-2
Update cryptonote_format_utils.cpp
This commit is contained in:
commit
d8e3a0c346
@ -80,7 +80,7 @@ namespace cryptonote
|
|||||||
#endif
|
#endif
|
||||||
block_reward += fee;
|
block_reward += fee;
|
||||||
|
|
||||||
std::vector<size_t> out_amounts;
|
std::vector<uint64_t> out_amounts;
|
||||||
decompose_amount_into_digits(block_reward, DEFAULT_FEE,
|
decompose_amount_into_digits(block_reward, DEFAULT_FEE,
|
||||||
[&out_amounts](uint64_t a_chunk) { out_amounts.push_back(a_chunk); },
|
[&out_amounts](uint64_t a_chunk) { out_amounts.push_back(a_chunk); },
|
||||||
[&out_amounts](uint64_t a_dust) { out_amounts.push_back(a_dust); });
|
[&out_amounts](uint64_t a_dust) { out_amounts.push_back(a_dust); });
|
||||||
@ -92,7 +92,7 @@ namespace cryptonote
|
|||||||
out_amounts.resize(out_amounts.size() - 1);
|
out_amounts.resize(out_amounts.size() - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t summary_amounts = 0;
|
uint64_t summary_amounts = 0;
|
||||||
for (size_t no = 0; no < out_amounts.size(); no++)
|
for (size_t no = 0; no < out_amounts.size(); no++)
|
||||||
{
|
{
|
||||||
crypto::key_derivation derivation = AUTO_VAL_INIT(derivation);;
|
crypto::key_derivation derivation = AUTO_VAL_INIT(derivation);;
|
||||||
|
Loading…
Reference in New Issue
Block a user