mirror of https://github.com/oxen-io/oxen-core.git
Remove assertion breaking wallet2 on a debug build
wallet2 expects to get back the UINT64_MAX value here for a fully-reserved service node: if it does, it recognizes the node is full and goes to look for reserved contribution spots.
This commit is contained in:
parent
c765081946
commit
d88d3d0de6
|
@ -214,7 +214,6 @@ uint64_t get_min_node_contribution(hf version, uint64_t staking_requirement, uin
|
|||
const uint64_t needed = staking_requirement - total_reserved;
|
||||
|
||||
const size_t max_contributors = version >= hf::hf19_reward_batching ? oxen::MAX_CONTRIBUTORS_HF19 : oxen::MAX_CONTRIBUTORS_V1;
|
||||
assert(max_contributors > num_contributions);
|
||||
if (max_contributors <= num_contributions) return UINT64_MAX;
|
||||
|
||||
const size_t num_contributions_remaining_avail = max_contributors - num_contributions;
|
||||
|
|
Loading…
Reference in New Issue