-
Notifications
You must be signed in to change notification settings - Fork 213
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
Tx metadata included in fee calculations #2075
Comments
I have managed to brake it: It seems that estimating fee with too large metadata (and actually sendindg such tx too) results in
Result:
In the log there is:
I have created PR extending tx meta tests -> #2110. |
Awe crap. I think that's because the guard which checks whether metadata are too large occurs only when one tries to submit the transaction, which happens after this invariant is triggered. We should move the transaction size guard earlier in the pipeline. |
BTW, Seems that latency benchamark failed for the same reason -> https://buildkite.com/input-output-hk/cardano-wallet-nightly/builds/630#f25ae394-5bd6-4422-ae66-12bf6700a0b3 |
2108: Add unit test for transaction metadata fee calculation r=Anviking a=rvl ### Issue Number ADP-307 / #2075 ### Overview - Property tests that the fee calculation produces a higher result when there is metadata present. - The test is along the lines of the withdrawal fee calculation test, which I reworded slightly. Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io> Co-authored-by: KtorZ <matthias.benkort@gmail.com>
2108: Add unit test for transaction metadata fee calculation r=Anviking a=rvl ### Issue Number ADP-307 / #2075 ### Overview - Property tests that the fee calculation produces a higher result when there is metadata present. - The test is along the lines of the withdrawal fee calculation test, which I reworded slightly. Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io> Co-authored-by: KtorZ <matthias.benkort@gmail.com>
2110: Tx metadata tests r=rvl a=piotr-iohk # Issue Number #2075 #2074 # Overview - 8a1b1eb Extend tx with meta test to check if metadata available on tx list and tx get - a90cefa Additional tests for fee estimation with metadata # Comments TRANSMETA_CREATE_03, TRANSMETA_ESTIMATE_03 - are currently failing -> #2075 (comment). Co-authored-by: Piotr Stachyra <piotr.stachyra@iohk.io> Co-authored-by: KtorZ <matthias.benkort@gmail.com> Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io>
2108: Add unit test for transaction metadata fee calculation r=Anviking a=rvl ### Issue Number ADP-307 / #2075 ### Overview - Property tests that the fee calculation produces a higher result when there is metadata present. - The test is along the lines of the withdrawal fee calculation test, which I reworded slightly. Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io> Co-authored-by: KtorZ <matthias.benkort@gmail.com>
2108: Add unit test for transaction metadata fee calculation r=Anviking a=rvl ### Issue Number ADP-307 / #2075 ### Overview - Property tests that the fee calculation produces a higher result when there is metadata present. - The test is along the lines of the withdrawal fee calculation test, which I reworded slightly. Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io> Co-authored-by: KtorZ <matthias.benkort@gmail.com>
2108: Add unit test for transaction metadata fee calculation r=Anviking a=rvl ### Issue Number ADP-307 / #2075 ### Overview - Property tests that the fee calculation produces a higher result when there is metadata present. - The test is along the lines of the withdrawal fee calculation test, which I reworded slightly. Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io> Co-authored-by: KtorZ <matthias.benkort@gmail.com>
lgtm.
|
Context
ADP-307
Adding metadata to transactions increases their size on chain. Therefore metadata incurs fees.
Decision
computeTxSize
.Acceptance Criteria
Development
As above.
QA
lib/shelley/test/unit/Cardano/Wallet/Shelley/TransactionSpec.hs
⇒ PR Add unit test for transaction metadata fee calculation #2108.lib/core-integration/src/Test/Integration/Scenario/API/Shelley/Transactions.hs
⇒ PR Tx metadata API integration tests #2096.The text was updated successfully, but these errors were encountered: