mirror of
https://git.wownero.com/wownero/wownero.git
synced 2025-01-08 20:08:53 +00:00
resolve merge conflict
This commit is contained in:
parent
ce1dd78f2d
commit
c7795b223c
@ -2103,16 +2103,10 @@ namespace cryptonote
|
|||||||
res.distributions.push_back({amount, d.cached_start_height, d.cached_distribution, d.cached_base});
|
res.distributions.push_back({amount, d.cached_start_height, d.cached_distribution, d.cached_base});
|
||||||
if (req.cumulative)
|
if (req.cumulative)
|
||||||
{
|
{
|
||||||
res.distributions.push_back({amount, slot.start_height, slot.distribution, slot.base});
|
auto &distribution = res.distributions.back().distribution;
|
||||||
found = true;
|
distribution[0] += d.cached_base;
|
||||||
if (req.cumulative)
|
for (size_t n = 1; n < distribution.size(); ++n)
|
||||||
{
|
distribution[n] += distribution[n-1];
|
||||||
auto &distribution = res.distributions.back().distribution;
|
|
||||||
distribution[0] += slot.base;
|
|
||||||
for (size_t n = 1; n < distribution.size(); ++n)
|
|
||||||
distribution[n] += distribution[n-1];
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -2125,6 +2119,13 @@ namespace cryptonote
|
|||||||
{
|
{
|
||||||
res.distributions.push_back({amount, slot.start_height, slot.distribution, slot.base});
|
res.distributions.push_back({amount, slot.start_height, slot.distribution, slot.base});
|
||||||
found = true;
|
found = true;
|
||||||
|
if (req.cumulative)
|
||||||
|
{
|
||||||
|
auto &distribution = res.distributions.back().distribution;
|
||||||
|
distribution[0] += slot.base;
|
||||||
|
for (size_t n = 1; n < distribution.size(); ++n)
|
||||||
|
distribution[n] += distribution[n-1];
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user