mirror of
https://github.com/monero-project/monero.git
synced 2025-08-22 13:49:33 -04:00
wallet2: fix infinite loop in fake out selection
The gamma picker and the caller code did not quite agree on the number of rct outputs available for use - by one block - which caused an infinite loop if the picker could never pick outputs from that block but already had picked all other outputs from previous blocks. Also change the range to select from using code from UkoeHB.
This commit is contained in:
parent
f307621678
commit
85a45587f2
2 changed files with 4 additions and 3 deletions
|
@ -101,6 +101,7 @@ namespace tools
|
|||
uint64_t pick();
|
||||
gamma_picker(const std::vector<uint64_t> &rct_offsets);
|
||||
gamma_picker(const std::vector<uint64_t> &rct_offsets, double shape, double scale);
|
||||
uint64_t get_num_rct_outs() const { return num_rct_outputs; }
|
||||
|
||||
private:
|
||||
struct gamma_engine
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue