-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make gas units more granular #1245
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some very minor nits, please feel free to ignore any of them!
@@ -130,7 +130,7 @@ initPureEvalEnv verifyUri = do | |||
initEvalEnv :: LibState -> IO (EvalEnv LibState) | |||
initEvalEnv ls = do | |||
mv <- newMVar ls | |||
gasRef <- newIORef 0 | |||
gasRef <- newIORef mempty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is because it's newtype-wrapped, then ignore this and all related comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Epic work, small comment on last pass, but optional. LGTM.
This is a change primarily to our units of gas, wherein 1
Gas
= 1000MilliGas
. With our current gas metering, we have 1Gas
= 2500 ns, thus, 1MilliGas
= 2.5 ns.PR checklist:
cabal run tests
. If they pass locally, docs are generated.pact -t
), make sure pact-lsp is in sync.Additionally, please justify why you should or should not do the following: