mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-01-08 21:48:11 -05:00
[Feat] For prover 4.6.1 (#1742)
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
.PHONY: clean setup_db test_tool all check_vars
|
||||
|
||||
GOOSE_CMD?=goose
|
||||
|
||||
BEGIN_BLOCK?=10973711
|
||||
END_BLOCK?=10973721
|
||||
|
||||
all: setup_db test_tool import_data
|
||||
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
-- Create a file with INSERT statements for the specific records
|
||||
\o block_export.sql
|
||||
\o 00100_import_blocks.sql
|
||||
\t on
|
||||
\a
|
||||
-- Write header comment
|
||||
SELECT '-- +goose Up';
|
||||
SELECT '-- +goose StatementBegin';
|
||||
SELECT '';
|
||||
|
||||
SELECT 'INSERT INTO l2_block (number, hash, parent_hash, header, withdraw_root,
|
||||
state_root, tx_num, gas_used, block_timestamp, row_consumption,
|
||||
chunk_hash, transactions
|
||||
@@ -22,6 +27,15 @@ SELECT 'INSERT INTO l2_block (number, hash, parent_hash, header, withdraw_root,
|
||||
FROM l2_block
|
||||
WHERE number >= 10973700 and number <= 10973730
|
||||
ORDER BY number ASC;
|
||||
|
||||
-- Write footer
|
||||
SELECT '';
|
||||
SELECT '-- +goose StatementEnd';
|
||||
SELECT '-- +goose Down';
|
||||
SELECT '-- +goose StatementBegin';
|
||||
SELECT 'DELETE FROM l2_block;';
|
||||
SELECT '-- +goose StatementEnd';
|
||||
|
||||
\t off
|
||||
\a
|
||||
\o
|
||||
Reference in New Issue
Block a user