mirror of
https://github.com/logos-blockchain/logos-blockchain-pocs.git
synced 2026-01-07 07:33:12 +00:00
fix t1 computation in threshold for pol
This commit is contained in:
parent
5070dbf597
commit
8d341328cd
@ -239,7 +239,7 @@ total_stake = F(5000)
|
||||
# compute t0,t1 via Taylor approx as before
|
||||
R = RealField(500)
|
||||
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 ))
|
||||
t1 = F(int((((- ln(R(0.95))**2) * R(p))) / ( R(2) * R(total_stake)**2 )))
|
||||
|
||||
|
||||
value = F(50)
|
||||
|
||||
@ -220,7 +220,7 @@ if total_stake >= p:
|
||||
exit()
|
||||
|
||||
t0 = F(int((((- ln(R(0.95))) * R(p))) / R(total_stake) ))
|
||||
t1 = F(int((((- ln(R(0.95))**2) * R(p))) / R(1/2) * R(total_stake)**2 ))
|
||||
t1 = F(int((((- ln(R(0.95))**2) * R(p))) / (R(2) * R(total_stake)**2 )))
|
||||
|
||||
|
||||
value = F(50)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user