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

feat(state-keeper): Parallel l2 block sealing #1801

Merged
merged 26 commits into from May 15, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
186d04f
Parallel miniblock sealing
perekopskiy Apr 25, 2024
a5aa211
Resolve conflicts
perekopskiy Apr 25, 2024
3eb87cb
Fix spelling
perekopskiy Apr 25, 2024
68d7f07
Fix get_traces_for_l2_block
perekopskiy Apr 26, 2024
ac0ed80
fmt
perekopskiy Apr 26, 2024
7612b1a
lint
perekopskiy Apr 26, 2024
652f9b2
Resolve conflict
perekopskiy Apr 30, 2024
cd8dff1
Apply suggestion to DAL
perekopskiy Apr 30, 2024
d2b98d0
`spawn` -> `run`; nits
perekopskiy Apr 30, 2024
d3f278a
fix contracts
perekopskiy Apr 30, 2024
3f92d24
Resolve conflict; wait for l1 batch in nonce sweeper
perekopskiy May 1, 2024
13d8f24
fmt
perekopskiy May 1, 2024
3fa70d6
clear pending data in persistance; improve sql queries
perekopskiy May 3, 2024
3dc2897
Merge branch 'main' into parallel-miniblock-seal
perekopskiy May 3, 2024
49c5592
Merge branch 'main' into parallel-miniblock-seal
perekopskiy May 7, 2024
f0303d1
Seal strategy; get rid of Arc
perekopskiy May 9, 2024
435fb76
Resolve conflicts
perekopskiy May 9, 2024
aed270a
fmt
perekopskiy May 9, 2024
74c07b7
revert contracts
perekopskiy May 9, 2024
47e0e21
move `clear_pending_l2_block`
perekopskiy May 9, 2024
2104533
Make it easier to work with `SealStrategy`
perekopskiy May 13, 2024
f91767d
Merge branch 'main' into parallel-miniblock-seal
perekopskiy May 14, 2024
5d64289
Merge branch 'main' into parallel-miniblock-seal
perekopskiy May 14, 2024
18b8c2b
Merge branch 'main' into parallel-miniblock-seal
perekopskiy May 14, 2024
f1c13dd
feat(state-keeper): Remove `pre_insert_txs` step (#1812)
perekopskiy May 14, 2024
d2115d8
Merge branch 'main' into parallel-miniblock-seal
perekopskiy May 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1,6 +1,6 @@
{
"db_name": "PostgreSQL",
"query": "\n SELECT\n transactions.hash AS tx_hash,\n transactions.index_in_block AS index_in_block,\n transactions.miniblock_number AS block_number,\n transactions.nonce AS nonce,\n transactions.signature AS signature,\n transactions.initiator_address AS initiator_address,\n transactions.tx_format AS tx_format,\n transactions.value AS value,\n transactions.gas_limit AS gas_limit,\n transactions.max_fee_per_gas AS max_fee_per_gas,\n transactions.max_priority_fee_per_gas AS max_priority_fee_per_gas,\n transactions.effective_gas_price AS effective_gas_price,\n transactions.l1_batch_number AS l1_batch_number,\n transactions.l1_batch_tx_index AS l1_batch_tx_index,\n transactions.data->'contractAddress' AS \"execute_contract_address\",\n transactions.data->'calldata' AS \"calldata\",\n miniblocks.hash AS \"block_hash\"\n FROM transactions\n LEFT JOIN miniblocks ON miniblocks.number = transactions.miniblock_number\n WHERE\n transactions.miniblock_number = $1 AND transactions.index_in_block = $2 AND transactions.data != '{}'::jsonb",
"query": "\n SELECT\n transactions.hash AS tx_hash,\n transactions.index_in_block AS index_in_block,\n miniblocks.number AS block_number,\n transactions.nonce AS nonce,\n transactions.signature AS signature,\n transactions.initiator_address AS initiator_address,\n transactions.tx_format AS tx_format,\n transactions.value AS value,\n transactions.gas_limit AS gas_limit,\n transactions.max_fee_per_gas AS max_fee_per_gas,\n transactions.max_priority_fee_per_gas AS max_priority_fee_per_gas,\n transactions.effective_gas_price AS effective_gas_price,\n transactions.l1_batch_number AS l1_batch_number,\n transactions.l1_batch_tx_index AS l1_batch_tx_index,\n transactions.data->'contractAddress' AS \"execute_contract_address\",\n transactions.data->'calldata' AS \"calldata\",\n miniblocks.hash AS \"block_hash\"\n FROM transactions\n LEFT JOIN miniblocks ON miniblocks.number = transactions.miniblock_number\n WHERE\n miniblocks.number = $1 AND transactions.index_in_block = $2 AND transactions.data != '{}'::jsonb",
"describe": {
"columns": [
{
Expand Down Expand Up @@ -98,7 +98,7 @@
"nullable": [
false,
true,
true,
false,
true,
true,
false,
Expand All @@ -115,5 +115,5 @@
false
]
},
"hash": "982a7566aebc4f94b37c9cbe32f0f6d8b037d7a5fade524a4faadb421399a00b"
"hash": "05be1a2c5cefcb1a58af2e5113e89003638d26219c13bc176e8cfee696d4e9f6"
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.