debug
This commit is contained in:
@@ -37,9 +37,10 @@ const MAX_PM = 0.2;
|
||||
|
||||
function hasRequiredRoles(n: ApiNode): boolean {
|
||||
const r = n.self_description?.declared_role ?? n.description?.declared_role ?? {};
|
||||
return r.mixnode === false && !!r.entry && !!r.exit_ipr && !!r.exit_nr;
|
||||
return r.mixnode === false && !!(r.entry && r.exit_ipr && r.exit_nr);
|
||||
}
|
||||
|
||||
|
||||
function hasGoodPM(n: ApiNode): boolean {
|
||||
const pm = toNumber(n.rewarding_details?.cost_params?.profit_margin_percent, NaN);
|
||||
return !Number.isNaN(pm) && pm <= MAX_PM;
|
||||
|
||||
Reference in New Issue
Block a user