#include <wallet2.h>
Definition at line 87 of file wallet2.h.
◆ gamma_picker() [1/2]
| tools::gamma_picker::gamma_picker |
( |
const std::vector< uint64_t > & |
rct_offsets | ) |
|
◆ gamma_picker() [2/2]
| tools::gamma_picker::gamma_picker |
( |
const std::vector< uint64_t > & |
rct_offsets, |
|
|
double |
shape, |
|
|
double |
scale |
|
) |
| |
Definition at line 995 of file wallet2.cpp.
996 rct_offsets(rct_offsets)
998 gamma = std::gamma_distribution<double>(shape, scale);
1001 const size_t blocks_to_consider = std::min<size_t>(rct_offsets.size(), blocks_in_a_year);
1002 const size_t outputs_to_consider = rct_offsets.back() - (blocks_to_consider < rct_offsets.size() ? rct_offsets[rct_offsets.size() - blocks_to_consider - 1] : 0);
1003 begin = rct_offsets.data();
1005 num_rct_outputs = *(end - 1);
#define ETN_DEFAULT_TX_SPENDABLE_AGE_V8
#define DIFFICULTY_TARGET_V6
#define THROW_WALLET_EXCEPTION_IF(cond, err_type,...)
◆ pick()
Definition at line 1012 of file wallet2.cpp.
1014 double x = gamma(engine);
1018 return std::numeric_limits<uint64_t>::max();
1023 uint64_t index = std::distance(begin, it);
1025 const uint64_t first_rct = index == 0 ? 0 : rct_offsets[index - 1];
1026 const uint64_t n_rct = rct_offsets[index] - first_rct;
1028 return std::numeric_limits<uint64_t>::max();
1029 MTRACE(
"Picking 1/" << n_rct <<
" in block " << index);
std::enable_if< std::is_unsigned< T >::value, T >::type rand_idx(T sz)
unsigned __int64 uint64_t
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/electroneum-4.0.0.0/src/wallet/wallet2.h
- /home/abuild/rpmbuild/BUILD/electroneum-4.0.0.0/src/wallet/wallet2.cpp