-
Notifications
You must be signed in to change notification settings - Fork 126
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
Question: what values to use for LinearFee
?
#711
Comments
Hi @gmoratorio ! Could you clarify does it happens only on the last 13.2.1 version ? Do you modify a tx somehow after change calculation? |
@lisicky thanks for the quick reply! Good point, this started happening some time before Now after upgrading to We use this logic in our base
then for usages we call
and What values should we be using for the |
@gmoratorio |
@lisicky yes, you're correct, I just checked all of our usages, and we don't seem to make any modifications after we set the change. Right after we call In general our pattern is:
|
do you use referenced scripts ? |
yes we use reference scripts in some places, and in particular the tx that I'm seeing the fee error on I know for sure uses one. For that transaction in question, these are the high-level steps:
and then we sign and submit the tx |
@gmoratorio check that you are specifying referenced script size correctly, since Conway referenced scripts affects transaction fee |
you can use |
ok @lisicky I think I finally figured out the issue. In this particular tx method we were calling
I inverted them so the calc happened first, and it seems to have resolved the fee issue. This is also the pattern we use in all of our other txs. It must have been accidentally inverted here.
Does this sound right to you? |
Yep it’s correct order
|
Otherwise fee would be calculated incorrectly |
sounds good, thanks @lisicky for talking through it. Tx are working now, I think this ticket can be closed. Really appreciate the time. |
In our codebase we previously had a simple
LinearFee
calculation ofderived from the protocol params
After upgrading to CSL
13.2.1
, however, I get a Phase-1 Validation fee error when trying to submit a test transaction onpreprod
:I can bypass this error by arbitrarily upping the
constant
and/orcoefficient
values in theLinearFee
calculation, but I'd like to be using real protocol parameters and best-practice values instead of just guessing a higher number that'll pass Phase-1.What values should be used for the first and second arg of
LinearFee
, and if they aren'tmin_fee_a
andmin_fee_b
, where should I be sourcing these values?The text was updated successfully, but these errors were encountered: