Skip to content
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

chore: World state tech debt cleanup 1 #9561

Merged
merged 28 commits into from
Nov 15, 2024
Merged

Conversation

PhilWindle
Copy link
Collaborator

@PhilWindle PhilWindle commented Oct 29, 2024

This PR contains some tech debt cleanup within the world state module. We address:

#9508, #9509, #9510, #9511, #9513, #9516, #9517

  1. Reported errors now contain much more information.
  2. Transactions have been refactored to reduced duplicated code.
  3. We handle trees going out of sync.
  4. On any DB modifying action (block sync, unwind or remove historic block) we return a comprehensive set of data about all of the trees and underlying stores.
  5. The DB map size is now specified on in the environment.

@@ -941,14 +969,22 @@ void ContentAddressedCachedTreeStore<LeafValueType>::remove_historical_block(con
get_meta(uncommittedMeta, *tx, true);
get_meta(committedMeta, *tx, false);
if (blockNumber != committedMeta.oldestHistoricBlock) {
throw std::runtime_error("Block number is not the most historic");
throw std::runtime_error(
Copy link
Collaborator

Choose a reason for hiding this comment

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

This formatting could have a small utility func

Copy link
Collaborator

Choose a reason for hiding this comment

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

Woops sorry hit merge by accident

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Used the pre-existing format function

Copy link
Contributor

github-actions bot commented Nov 13, 2024

Changes to public function bytecode sizes

Generated at commit: 5aa00a4c1bcd47b381ade500cd61cb89c832df5b, compared to commit: 7661e428161ba91d4fa978e6a5d09568c649e51f

🧾 Summary (100% most significant diffs)

Program Bytecode size in bytes (+/-) %
TokenBridge::claim_public +476 ❌ +3.82%
Test::public_dispatch +461 ❌ +2.33%
TokenBridge::public_dispatch +201 ❌ +0.92%
TokenBridge::exit_to_l1_public -230 ✅ -2.80%

Full diff report 👇
Program Bytecode size in bytes (+/-) %
TokenBridge::claim_public 12,946 (+476) +3.82%
Test::public_dispatch 20,276 (+461) +2.33%
TokenBridge::public_dispatch 22,156 (+201) +0.92%
TokenBridge::exit_to_l1_public 7,996 (-230) -2.80%

Copy link
Contributor

@alexghr alexghr left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@PhilWindle PhilWindle merged commit 05e4b27 into master Nov 15, 2024
66 checks passed
@PhilWindle PhilWindle deleted the pw/world-state-cleanup branch November 15, 2024 14:30
TomAFrench added a commit that referenced this pull request Nov 18, 2024
* master: (281 commits)
  fix: don't take down runners with faulty runner check (#10019)
  feat(docs): add transaction profiler docs (#9932)
  chore: hotfix runner wait (#10018)
  refactor: remove EnqueuedCallSimulator (#10015)
  refactor: stop calling public kernels (#9971)
  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
  chore: drop info to verbose in sequencer hot loop (#9983)
  refactor: Trace structure is an object (#10003)
  refactor: enqueued calls processor -> public tx simulator (#9919)
  chore: World state tech debt cleanup 1 (#9561)
  chore(ci): run noir tests in parallel to building e2e tests (#9977)
  Revert "chore: lower throughput of ebs disks" (#9996)
  feat: new proving broker implementation (#9400)
  chore: replace `to_radix` directive with brillig (#9970)
  chore: disable failing 48validator kind test (#9920)
  test: prove one epoch in kind (#9886)
  fix: formatting (#9979)
  ...
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.

3 participants