Repository navigation
Conversation
The main page awards best CPU, best memory and smallest size, but none of them is what a transaction pays. The total fee, execution plus reference-script fee, prices all three the way the ledger does: a row can win CPU with a script whose size fee outweighs the saving. Every metrics.json already records total_fee_lovelace, so the index now shows its winner first, and the other three medals follow unchanged.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The main page awards best CPU, best memory and smallest size. None of them is what a transaction pays. The total fee (execution fee plus reference-script fee) prices all three the way the ledger does, and a row can win one medal while costing more overall.
Example from current main,
ecd: the CPU and memory medals go to Plinth 1.64/1.65 (18.75M CPU), whose 502-byte script costs 13,002 lovelace in total. Plinth 1.61/1.67/1.71 cost 7,886.Every
metrics.jsonalready recordstotal_fee_lovelace, sofind_winnerspicks its minimum, with ties handled like the other metrics. The index shows that winner first in each card, as "Lowest Fee". The other three medals are unchanged.Checked by generating the full report with
cape submission report --all: all 8 cards show the new item.