Select coins using the CoinGrinder deterministic search algorithm.
Synopsis
Declared in <wallet/coinselection.h>
util::Result<SelectionResult>
CoinGrinder(
std::vector<OutputGroup>& utxo_pool,
CAmount const& selection_target,
CAmount change_target,
int max_selection_weight);
Return Value
If successful, a valid SelectionResult, otherwise util::Error.
Parameters
Name |
Description |
utxo_pool |
The output groups eligible for selection. |
selection_target |
The target value to select for. |
change_target |
The minimum change amount to target. |
max_selection_weight |
The maximum allowed weight for a valid selection. |
Created with MrDocs