Skip to content
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

Allow for configurable Tx Size and ex-Units #165

Merged
merged 11 commits into from
Feb 17, 2023
Merged

Allow for configurable Tx Size and ex-Units #165

merged 11 commits into from
Feb 17, 2023

Conversation

bradley-heather
Copy link
Contributor

No description provided.

plutip-server/Types.hs Outdated Show resolved Hide resolved
Comment on lines 103 to 111
data StartClusterRequest =
StartClusterRequest { keysToGenerate :: [[Lovelace]] } -- | Lovelace amounts for each UTXO of each wallet
| StartClusterRequestWithConfig
{ slotLength :: NominalDiffTime
, epochSize :: EpochSize
, maxTxSize :: Natural
, increasedExUnits :: Bool
, keysToGenerate :: [[Lovelace]]
}
Copy link

@rynoV rynoV Dec 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to change this to be one constructor, and make it so that any keys that are missing from the request (or are set to Nothing) are given default values? This would simplify things for users, as currently if they want to change one of these values they have to supply values for all of them. It would also simplify (in my opinion) the design in your other PR (see my review)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@zmrocze zmrocze mentioned this pull request Jan 20, 2023
4 tasks
@klntsky klntsky merged commit 3f0187c into for-ctl Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants