#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 996 of file wallet2.cpp.
997 rct_offsets(rct_offsets)
999 gamma = std::gamma_distribution<double>(shape, scale);
1002 const size_t blocks_to_consider = std::min<size_t>(rct_offsets.size(), blocks_in_a_year);
1003 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);
1004 begin = rct_offsets.data();
1006 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 1013 of file wallet2.cpp.
1015 double x = gamma(engine);
1019 return std::numeric_limits<uint64_t>::max();
1024 uint64_t index = std::distance(begin, it);
1026 const uint64_t first_rct = index == 0 ? 0 : rct_offsets[index - 1];
1027 const uint64_t n_rct = rct_offsets[index] - first_rct;
1029 return std::numeric_limits<uint64_t>::max();
1030 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
#define THROW_WALLET_EXCEPTION_IF(cond, err_type,...)
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/electroneum-5.0.0.4/src/wallet/wallet2.h
- /home/abuild/rpmbuild/BUILD/electroneum-5.0.0.4/src/wallet/wallet2.cpp