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

Tracking PR for v0.7 release #599

Draft
wants to merge 43 commits into
base: main
Choose a base branch
from
Draft

Tracking PR for v0.7 release #599

wants to merge 43 commits into from

Conversation

bobbinth
Copy link
Contributor

This is a tracking PR for v0.7 release.

Mirko-von-Leipzig and others added 30 commits October 7, 2024 13:05
Initial outline of the block-producer redesign.

Includes a new mempool which can track transaction and batch dependencies as a graph. This
enables more complex mempool strategies.
This makes `AuthenticatedTransaction` much cheaper to clone and move around.
)

`BatchGraph` now uses `DependencyGraph<BatchJobId, TransactionBatch` internally.

This allows us to focus test energy on a single graph type instead of replicating tests and edge cases with more specific implementations.

This requires adjusting `DependencyGraph` to separate the `insert` method into `insert_pending` and `promote_pending` to support inserting a batch into the graph while still waiting on its proof.
Doing this now in an effort to simplify subsequent work that will be less isolated.
feat(block-producer): merge next into next-block-producer
Replace FIFO with the mempool block-producer rework.

This still has known bugs and issues; notably the client's integration tests sometimes hang.
Previously only http was supported.
* refactor: remove unused dependencies, migrate code to the latest `next` of `miden-base`

* chore: update `miden-base`

* refactor: migrate to `assert_matches!` macro

* chore: switch to the `next` branch of `miden-base`

* refactor: add missed `assert_matches!`
…554)

* feat: prepare DB structure for new delta format

* chore: remove unused dependencies

* fix: delta merging bugs

* fix: remove obsolete check in test

* fix: update directory name to correspond common format

* refactor: rename DB tables

* refactor: add `WITHOUT ROWID` to tables where ROWID is unnecessary

* refactor: don't require allocations and clones for `bulk_insert`

* fix: get rid of `unsafe` in `NonFungibleAsset` construction from `Word`

* refactor: extract utils to separate module inside `sql`

* refactor: rename `account_nonce_updates` table to `account_deltas`

* docs: improve function description for `select_account_state_delta`

* fix: compilation errors

* refactor: rename `account_hash_update_from_row` to `account_summary_from_row`

* refactor: rename `account_hash_update_from_row` to `account_summary_from_row`

* refactor: get rid of `u32_to_value`

* refactor: remove unnecessary indexes

* refactor: multiple inserts instead of `bulk_insert`

* refactor: multiple queries instead of single query with unions

* refactor: implement `insert_sql` macro

* docs: improve doc comment for `insert_sql` macro
Merge in the `next-block-producer` feature branch.

This replaces the FIFO queue with a mempool based on a transaction dependency graph.
This was previously added in #544 but was mistakenly dropped by a rebase.
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.

7 participants