oxen-io / oxen-core

Oxen core repository, containing oxend and oxen cli wallets
https://oxen.io
Other
317 stars 120 forks source link

Fix decommission credit not applying #1710

Closed jagerman closed 2 months ago

jagerman commented 2 months ago

The change here to make the credit per day value more obvious also broke it by applying integer division (24h / 30 == 0h, but we actually want 48min). This fixes it to get credit calculations working properly again.

(This change doesn't break chain consensus: it only affects consensus within each obligations quorum, so will make the outcome of whether a node gets decomm or dereged a bit random until everyone has transitioned, but won't break the chain.).