from hard fork 2, all outputs must be decomposed
The wallet decomposes fully as of now too.
This commit is contained in:
parent
90ccad1236
commit
ac90d488e7
6 changed files with 67 additions and 48 deletions
|
@ -141,7 +141,7 @@ namespace cryptonote
|
|||
block_reward += fee;
|
||||
|
||||
std::vector<uint64_t> out_amounts;
|
||||
decompose_amount_into_digits(block_reward, ::config::DEFAULT_DUST_THRESHOLD,
|
||||
decompose_amount_into_digits(block_reward, hard_fork_version >= 2 ? 0 : ::config::DEFAULT_DUST_THRESHOLD,
|
||||
[&out_amounts](uint64_t a_chunk) { out_amounts.push_back(a_chunk); },
|
||||
[&out_amounts](uint64_t a_dust) { out_amounts.push_back(a_dust); });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue