MCPcopy Create free account
hub / github.com/LUX-Core/lux / GetSelectionInterval

Function GetSelectionInterval

src/stake.cpp:151–154  ·  view source on GitHub ↗

Get selection interval (nSection in seconds)

Source from the content-addressed store, hash-verified

149
150// Get selection interval (nSection in seconds)
151static int64_t GetSelectionInterval(int nSection) {
152 assert(nSection >= 0 && nSection < 64);
153 return (GetInterval() * 63 / (63 + ((63 - nSection) * (MODIFIER_INTERVAL_RATIO - 1))));
154}
155
156// Get stake modifier selection time (in seconds)
157static int64_t GetSelectionTime() {

Callers 1

ComputeNextModifierMethod · 0.85

Calls 1

GetIntervalFunction · 0.85

Tested by

no test coverage detected