-
Notifications
You must be signed in to change notification settings - Fork 36
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
Possibly incorrect min_fee calculation. #354
Comments
next cost models used
|
Can you provide more info about the scripts used in those reference inputs? (size is the relevant thing here) From where are they all being used? I'm guessing they aren't just used to spend utxos? Could you share your tx-builder-related code? |
* Check everywhere that could use a ref script (not sure if everyone it's allowed) * Duplicate size for different ref inptus with the same ref script as per Haskell code * look in spent inputs too (as this is possible to ref a script from) Possibly addresses #354
@Bromel777 can you check to see if #359 fixes this? |
I'm experiencing this using eternl and lace to spend utxos at public key addresses with either an inline datum or reference script |
@jonathanfishbein1 we're blocked information from somebody who hits this issue such as yourself to help us validate a fix: #359 (comment) |
Would it help if I pasted here the tx cbor? |
It depends. We want to know what transaction inputs lead to this error and the tx cbor contains the inputs but also contains the change inputs as well. We can probably reverse engineer what the inputs are, but it's extra work |
Eternl says they're using cardano-serialization-lib, so maybe the bug I'm experiencing is different? |
@rooooooooob @SebastienGllmt Hi, sorry for delay. I've tested version from #359 and still getting this issue. Node CLI error: Scripts: Also I'm using Maestro API for calculation exUnits, response for this tx is: I've often used values exceeding those. |
Also as I can see that increasing ex_units affects to min_fee from cml, but the difference is still in range of 100_000 lovelace +- |
upd. Cardano cli also add |
Hi, I'm trying to calculate min_fee for this tx by calling
min_fee(true)
, the result is less than real.Tx hash
84a800838258201a2548ca9a2d9fb35a16c3da5c760b7704002c14339844647415f2e9bb5e59a5008258202b03bb18f6cfd952fca26c9e2114226c6ea3c5ab91d73be4e56227a55d1c010e0082582030d954068e79dfd28694fa897672ece76a4ba65524ee8aa5b32e1918eb93079a000183a3005839309dee0659686c3ab807895c929e3284c11222affd710b09be690f924db2f6abf60ccde92eae1a2f4fdf65f2eaf6208d872c6f0e597cc10b0701821b0000000288f93cd0a3581cd9bb181e3bb7993a343d6cdc7c1b96080243ff935ae18808432c0a44a14a4e4557205343524950541a0f8cd1fe581c6e917b8b965078a39804a6313e5be73535612421acd70aa83f0ec200a15820712764b20fe9746c5e6c0a576ffd0fb8a3ca136773a8cb8db02fc3fb0937b6e71b7fffffff9b8b1550581cd8eb52caf3289a2880288b23141ce3d2a7025dcf76f26fd5659add06a15820ddae4822e3183bcd3f1527cbcd723b3e57f5dd4774587f2e53c1d7052813575801028201d818590111d8799fd8799f581cd8eb52caf3289a2880288b23141ce3d2a7025dcf76f26fd5659add065820ddae4822e3183bcd3f1527cbcd723b3e57f5dd4774587f2e53c1d70528135758ffd8799f4040ffd8799f581cd9bb181e3bb7993a343d6cdc7c1b96080243ff935ae18808432c0a444a4e455720534352495054ffd8799f581c6e917b8b965078a39804a6313e5be73535612421acd70aa83f0ec2005820712764b20fe9746c5e6c0a576ffd0fb8a3ca136773a8cb8db02fc3fb0937b6e7ff1a000182b81864190fa0009fd8799fd87a9f581ce5619f78d716cc24ea924e4412d83353ae390edd9905ecc6d5c85c2bffffff00581c75c4570eb625ae881b32a34c52b159f6f3f3f2c7aaabf5bac4688133ffa200583900719bee424a97b58b3dca88fe5da6feac6494aa7226f975f3506c5b257846f6bb07f5b2825885e4502679e699b4e60a0c4609a46bc35454cd01821a001a7f25a1581cd9bb181e3bb7993a343d6cdc7c1b96080243ff935ae18808432c0a44a14a4e455720534352495054195c98a200583900719bee424a97b58b3dca88fe5da6feac6494aa7226f975f3506c5b257846f6bb07f5b2825885e4502679e699b4e60a0c4609a46bc35454cd01821a001b37e7a1581cd9bb181e3bb7993a343d6cdc7c1b96080243ff935ae18808432c0a44a14a4e455720534352495054195c93021a0008d89405a1581df096f5c1bee23481335ff4aece32fe1dfa1aa40a944a66d2d6edc9a9a5000b58203aa61c76f6cf133bac54787dbd0e381f3628d197a5cc61d6cb380eb3ab65440a0d81825820204619c402f17d83be5cdf7728514053a948f46ab44cf193957c720ba1b53328000e81581c5cb2c968e5d1c7197a6ce7615967310a375545d9bc65063a964335b21283825820a85dbebcf7a9c27a2548191e6516b12140ec744c142248355ddeef8652ab071f00825820d676064bdbc3aa59bcf266506cd6d6bcf246d9874e7f21089fccca2e36b3064e0082582077fc5b1688a79dd5b9bdba5981b7403b519690dda4f1471fffa78151bbefe0f501a20081825820d39f6e2677e23ac35da0a65bef78ae5cfdf34eb57c4059d4d7f31aa9ccdb8eff5840adf9788ac6d4201fb4e2547de0b7f9a8cad1b71b7681e5512deb095649105d16f0cc05d9694cde090a200b99b0d494cd86a2ed9c969cb6b642bd904750eac3050584840000d879820200821a0009eb101a0f7f4900840001d87a80821a000298101a03dfd240840002d87a80821a000298101a03dfd24084030080821a000f42401a160dc080f5f6
Value from
min_fee(true)
is579732
Value from attempt to submit tx manually by Cardano-cli
592007
The text was updated successfully, but these errors were encountered: