-
Notifications
You must be signed in to change notification settings - Fork 88
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
Remove minting policy script from ChainState #928
Conversation
Transactions CostsSizes and execution budgets for Hydra protocol transactions. Note that unlisted parameters are currently using
Script summary
Cost of Init Transaction
Cost of Commit TransactionThis is using ada-only outputs for better comparability.
Cost of CollectCom Transaction
Cost of Close Transaction
Cost of Contest Transaction
Cost of Abort TransactionSome variation because of random mixture of still initial and already committed outputs.
Cost of FanOut TransactionInvolves spending head output and burning head tokens. Uses ada-only UTxO for better comparability.
|
That should definitely help with our logs. Awesome 🎉 |
, openUtxoHash = utxoHash | ||
} | ||
pure (event, st') | ||
where | ||
InitialState | ||
{ headId = headId |
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.
Not sure where those came from 🤔 ?
hydra-node/src/Hydra/HeadLogic.hs
Outdated
@@ -1014,6 +1014,11 @@ update env ledger st ev = case (st, ev) of | |||
-- General | |||
(currentState, OnChainEvent Rollback{rolledBackChainState}) -> | |||
NewState (setChainState rolledBackChainState currentState) [] | |||
-- FIXME: We do not write the chain state unless we do a head state change. |
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.
suggestion: move to a github issue? Stuff in code comments have a natural tendency to get lost in the sands of time and trumped by other priorities
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.
Was not intending to commit this and I have written a bug report yesterday about this: #931
1f1aade
to
41fa9cb
Compare
The actual script is easily computd from the linked hydra-plutus script code using the `seedTxIn` and this will substantially reduce persisted and logged size.
41fa9cb
to
2b8ec49
Compare
The actual script is easily computd from the linked hydra-plutus script code using the
seedTxIn
and this will substantially reduce persisted and logged size.Rough estimate: By watching the state directory of e2e test "two heads on the same network do not conflict" I could see ~11MB use on
master
and around ~6.2MB use with this branch.