mirror of
https://github.com/logos-blockchain/logos-blockchain-pocs.git
synced 2026-01-05 22:53:10 +00:00
adjust formula computation in the generation of input to follow the specs
This commit is contained in:
parent
6ecd06e7c7
commit
0f0bf6926b
@ -220,8 +220,8 @@ if total_stake >= p:
|
||||
print("total stake must be less than p")
|
||||
exit()
|
||||
|
||||
t0 = F(int(-((R(p) * ln(R(1) - 0.05))) / R(total_stake)))
|
||||
t1 = F(int(-((R(p) * ln(R(1) - 0.05))**2) / R(total_stake)**2))
|
||||
t0 = F(int((((- ln(R(0.95))) * R(p))) / R(total_stake) ))
|
||||
t1 = F(int((((- ln(R(0.95))**2) * R(p))) / R(total_stake)**2 ))
|
||||
|
||||
|
||||
value = F(50)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user