Skip to content

Commit

Permalink
Change the type of f_I and f_E to Rational
Browse files Browse the repository at this point in the history
  • Loading branch information
dnadales committed Jun 25, 2024
1 parent 39ad0a9 commit 6fed012
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions leios-sim/src/Leios/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ gNodeBandwidth = BitsPerSecond 100

gIBSize = NumberOfBits 300

g_f_I = BlocksPerSecond 1
g_f_I = 0.5

g_f_E = BlocksPerSecond 4
g_f_E = 1

--------------------------------------------------------------------------------
-- Model parameters
Expand All @@ -84,9 +84,8 @@ data Parameters = Parameters
, nodeBandwidth :: BitsPerSecond
, ibSize :: NumberOfBits
-- ^ Size of the diffusion block.
, f_I :: BlocksPerSecond
-- ^ Frequency of IBs per-node. FIXME: I think this will be determined by the leader schedule (VRF lottery).
, f_E :: BlocksPerSecond
, f_I :: Rational
, f_E :: Rational
-- ^ Frequency of EBs per-node. FIXME: I think this will be determined by the leader schedule (VRF lottery).
}
deriving (Show, Generic)
Expand Down

0 comments on commit 6fed012

Please sign in to comment.