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:
Jason Rhinelander 2022-05-25 21:53:33 -03:00
parent c765081946
commit d88d3d0de6
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262
1 changed files with 0 additions and 1 deletions

View File

@ -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;