mirror of
https://github.com/oxen-io/oxen-core.git
synced 2023-12-14 02:22:56 +01:00
service nodes: fixed bug in reservation calculation (#138)
This commit is contained in:
parent
e19cdc0532
commit
f2b5480f45
|
@ -334,6 +334,7 @@ namespace service_nodes
|
|||
lo = mul128(info.staking_requirement, service_node_portions[i], &hi);
|
||||
div128_32(hi, lo, STAKING_PORTIONS, &resulthi, &resultlo);
|
||||
info.contributors.push_back(service_node_info::contribution(resultlo, service_node_addresses[i]));
|
||||
info.total_reserved += resultlo;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue