-
Notifications
You must be signed in to change notification settings - Fork 217
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
Getting minimum utxo #1894
Getting minimum utxo #1894
Conversation
bors try |
tryBuild succeeded |
let feePolicy@(LinearFee (Quantity a) _ _) = txp ^. #getFeePolicy | ||
let feeOptions = (feeOpts tl Nothing feePolicy) | ||
{ dustThreshold = Coin $ ceiling a } | ||
let minUtxo' = max (Coin $ ceiling a) minUtxo |
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.
👍
@@ -152,6 +152,7 @@ ProtocolParameters | |||
protocolParametersTxMaxSize Word16 sql=tx_max_size | |||
protocolParametersDecentralizationLevel Percentage sql=decentralization_level | |||
protocolParametersDesiredNumberOfPools Word16 sql=desired_pool_number | |||
protocolParametersMinimumUtxoValue W.Coin sql=minimum_utxo_value |
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.
We're going to need a migration for this one with a default value.
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.
cherry-picked one commit and also handled the migration in 487bb4f
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.
Looks good as a first step, I wonder how well it's going to work with the coin selection.
Beware that we need a migration for the added column!
Turns out that adding column is a pretty common and straighfordward migration. I originally intended to add a new column to the TxMeta table, hence the refactor. In the end, I've used a different table for withdrawals, but the refactor is still worth it as it is IMO.
487bb4f
to
ac66d37
Compare
adjust the rest of codebase
ac66d37
to
193adf3
Compare
bors try |
tryBuild failed |
bors r+ |
This PR was included in a batch with a merge conflict, it will be automatically retried |
Build succeeded |
Issue Number
#1893
Overview
ProtocolParameters
andApiNetworkParameters
Comments