MCPcopy Create free account
hub / github.com/ElementsProject/elements / getIndexForConfTarget

Function getIndexForConfTarget

src/qt/sendcoinsdialog.cpp:56–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 return confTargets[index];
55}
56int getIndexForConfTarget(int target) {
57 for (unsigned int i = 0; i < confTargets.size(); i++) {
58 if (confTargets[i] >= target) {
59 return i;
60 }
61 }
62 return confTargets.size() - 1;
63}
64
65SendCoinsDialog::SendCoinsDialog(const PlatformStyle *_platformStyle, QWidget *parent) :
66 QDialog(parent, GUIUtil::dialog_flags),

Callers 1

setModelMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected