Skip to content

refactor: proving cost in fee header#12048

Merged
LHerskind merged 2 commits intomasterfrom
lh/11941
Feb 26, 2025
Merged

refactor: proving cost in fee header#12048
LHerskind merged 2 commits intomasterfrom
lh/11941

Conversation

@LHerskind
Copy link
Contributor

@LHerskind LHerskind commented Feb 17, 2025

Fixes #11941. Takes the simplest approach, store the value so we can just reuse it. Alternatively we would be doing a few re-computations, so with the plan that we can do a bit of storage packing this should turn out being the cheapest of the solutions.

This was referenced Feb 17, 2025
Copy link
Contributor Author

LHerskind commented Feb 17, 2025

@LHerskind LHerskind force-pushed the lh/12001-delete-cheatcodes branch from 06574cd to 910ca9e Compare February 18, 2025 00:34
@LHerskind LHerskind force-pushed the lh/12001-delete-cheatcodes branch from 910ca9e to b51628e Compare February 18, 2025 17:35
@LHerskind LHerskind force-pushed the lh/12001-delete-cheatcodes branch from b51628e to c720843 Compare February 24, 2025 17:20
@LHerskind LHerskind force-pushed the lh/12001-delete-cheatcodes branch from c720843 to fa3f88d Compare February 25, 2025 08:25
@LHerskind LHerskind marked this pull request as ready for review February 25, 2025 09:28
@LHerskind LHerskind force-pushed the lh/12001-delete-cheatcodes branch from fa3f88d to 7b09f15 Compare February 25, 2025 09:40
@LHerskind LHerskind linked an issue Feb 25, 2025 that may be closed by this pull request
Base automatically changed from lh/12001-delete-cheatcodes to master February 25, 2025 13:17
uint256 manaUsed;
uint256 feeAssetPriceNumerator;
uint256 congestionCost;
uint256 provingCost;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i assume the mentioned fee packing comes later

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. Currently we cannot do a neat and nice gas-report due to how we are messing with the gas amounts in fees. So the plan was getting that going, and then dealing with the cost optimisations when we got that part going.

// Decode and validate header
Header memory header = ExtRollupLib.decodeHeader(_args.header);

// @todo As part of a refactor of the core for propose and submit, we should
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue

Copy link
Contributor Author

@LHerskind LHerskind Feb 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be dealt with in #12063 and #10004

@LHerskind LHerskind merged commit 5da66c8 into master Feb 26, 2025
10 checks passed
@LHerskind LHerskind deleted the lh/11941 branch February 26, 2025 10:39
TomAFrench added a commit that referenced this pull request Feb 26, 2025
* master: (92 commits)
  chore: Log prover publisher address on creation (#12267)
  feat: https for bootnode in devnet (#12161)
  feat(avm): support shifts in lookups (#12280)
  feat(docs): Add flamegraph tool to counter contract tutorial (#12202)
  feat(spartan): 192 node 1 tps - additional validator service (#12238)
  feat(avm): class id derivation (#12263)
  docs: Fees doc snippets and code snippets (#12229)
  refactor: proving cost in fee header (#12048)
  fix: prometheus scrapes itself in the cluster (#12277)
  feat: metrics (#12256)
  chore: cleanup stdlib internal imports (#12274)
  git subrepo push --branch=master noir-projects/aztec-nr
  git_subrepo.sh: Fix parent in .gitrepo file. [skip ci]
  chore: replace relative paths to noir-protocol-circuits
  git subrepo push --branch=master barretenberg
  fix: Enforce no import side effects (#12268)
  refactor!: note interfaces (#12106)
  yolo undenoise tests
  feat: new transcript functionality to hash elements without including in proof (#12233)
  chore: remove gcloud metrics (#12265)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: make proving cost updatable behaviour predictable

3 participants