mirror of https://github.com/oxen-io/oxen-core.git
Fix pulse not avoiding small contributor unlocks
This commit is contained in:
parent
d955607306
commit
2f1e2557ff
|
@ -995,11 +995,8 @@ namespace service_nodes
|
|||
[&unlock](const service_node_info::contribution_t &contribution) {
|
||||
return unlock.key_image == contribution.key_image;
|
||||
});
|
||||
if (cit == contributor.locked_contributions.end())
|
||||
return false;
|
||||
|
||||
if (cit->amount < small_contributor_amount_threshold && (block_height - node_info.registration_height) < service_nodes::SMALL_CONTRIBUTOR_UNLOCK_TIMER)
|
||||
return true;
|
||||
if (cit != contributor.locked_contributions.end())
|
||||
return cit->amount < small_contributor_amount_threshold && (block_height - node_info.registration_height) < service_nodes::SMALL_CONTRIBUTOR_UNLOCK_TIMER;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue