Add eth.blob_hashes table
All checks were successful
Docker Build / Dummy job (pull_request) Successful in 4s
Docker Build / Run docker build (pull_request) Successful in 46s

Map transaction hashes to (externally stored) blob versioned hashes.
This commit is contained in:
Roy Crihfield 2024-05-28 22:24:28 +08:00
parent b64d747e4c
commit 95c31f382f

View File

@ -0,0 +1,12 @@
-- +goose Up
CREATE TABLE eth.blob_hashes (
tx_hash VARCHAR(66) NOT NULL,
index INTEGER NOT NULL,
blob_hash BYTEA NOT NULL
);
CREATE UNIQUE INDEX blob_hashes_tx_hash_index ON eth.blob_hashes(tx_hash, index);
-- +goose Down
DROP INDEX eth.blob_hashes_tx_hash_index;
DROP TABLE eth.blob_hashes;