mirror of
https://github.com/logos-blockchain/logos-blockchain-pocs.git
synced 2026-01-07 15:43:07 +00:00
fix t0 and t1 constants
This commit is contained in:
parent
167923137a
commit
463cb1ce7d
@ -239,8 +239,8 @@ epoch_nonce = F(randrange(0, p,1))
|
|||||||
slot_number = F(randrange(0, 2**32,1))
|
slot_number = F(randrange(0, 2**32,1))
|
||||||
total_stake = int(5000)
|
total_stake = int(5000)
|
||||||
|
|
||||||
t0_constant = F(0x27b6fe27507ca57ca369280400c79b5d2f58ff94d87cb0fbfc8294eb69eb1ea)
|
t0_constant = F(0x1a3fb997fd58374772808c13d1c2ddacb5ab3ea77413f86fd6e0d3d978e5438)
|
||||||
t1_constant = F(0x104bfd09ebdd0a57772289d0973489b62662a4dc6f09da8b4af3c5cfb1dcdd)
|
t1_constant = F(0x71e790b41991052e30c93934b5612412e7958837bac8b1c524c24d84cc7d0)
|
||||||
|
|
||||||
t0 = F(int(t0_constant) // total_stake)
|
t0 = F(int(t0_constant) // total_stake)
|
||||||
t1 = F(p- (int(t1_constant) // total_stake**2))
|
t1 = F(p- (int(t1_constant) // total_stake**2))
|
||||||
|
|||||||
@ -219,8 +219,8 @@ if total_stake >= p:
|
|||||||
print("total stake must be less than p")
|
print("total stake must be less than p")
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
t0_constant = F(0x27b6fe27507ca57ca369280400c79b5d2f58ff94d87cb0fbfc8294eb69eb1ea)
|
t0_constant = F(0x1a3fb997fd58374772808c13d1c2ddacb5ab3ea77413f86fd6e0d3d978e5438)
|
||||||
t1_constant = F(0x104bfd09ebdd0a57772289d0973489b62662a4dc6f09da8b4af3c5cfb1dcdd)
|
t1_constant = F(0x71e790b41991052e30c93934b5612412e7958837bac8b1c524c24d84cc7d0)
|
||||||
|
|
||||||
t0 = F(int(t0_constant) // total_stake)
|
t0 = F(int(t0_constant) // total_stake)
|
||||||
t1 = F(p- (int(t1_constant) // total_stake**2))
|
t1 = F(p- (int(t1_constant) // total_stake**2))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user