forked from cerc-io/ipld-eth-server
updates for light sync transactions
This commit is contained in:
@@ -5,7 +5,7 @@ CREATE TABLE full_sync_transactions (
|
||||
gaslimit NUMERIC,
|
||||
gasprice NUMERIC,
|
||||
hash VARCHAR(66),
|
||||
input_data VARCHAR,
|
||||
input_data BYTEA,
|
||||
nonce NUMERIC,
|
||||
raw BYTEA,
|
||||
tx_from VARCHAR(66),
|
||||
|
||||
@@ -1,12 +1,17 @@
|
||||
-- +goose Up
|
||||
CREATE TABLE light_sync_transactions (
|
||||
id SERIAL PRIMARY KEY,
|
||||
header_id INTEGER NOT NULL REFERENCES headers(id) ON DELETE CASCADE,
|
||||
hash TEXT,
|
||||
raw JSONB,
|
||||
tx_index INTEGER,
|
||||
tx_from TEXT,
|
||||
tx_to TEXT,
|
||||
id SERIAL PRIMARY KEY,
|
||||
header_id INTEGER NOT NULL REFERENCES headers(id) ON DELETE CASCADE,
|
||||
hash TEXT,
|
||||
gaslimit NUMERIC,
|
||||
gasprice NUMERIC,
|
||||
input_data BYTEA,
|
||||
nonce NUMERIC,
|
||||
raw BYTEA,
|
||||
tx_from TEXT,
|
||||
tx_index INTEGER,
|
||||
tx_to TEXT,
|
||||
"value" NUMERIC,
|
||||
UNIQUE (header_id, hash)
|
||||
);
|
||||
|
||||
|
||||
+9
-4
@@ -161,7 +161,7 @@ CREATE TABLE public.full_sync_transactions (
|
||||
gaslimit numeric,
|
||||
gasprice numeric,
|
||||
hash character varying(66),
|
||||
input_data character varying,
|
||||
input_data bytea,
|
||||
nonce numeric,
|
||||
raw bytea,
|
||||
tx_from character varying(66),
|
||||
@@ -266,10 +266,15 @@ CREATE TABLE public.light_sync_transactions (
|
||||
id integer NOT NULL,
|
||||
header_id integer NOT NULL,
|
||||
hash text,
|
||||
raw jsonb,
|
||||
tx_index integer,
|
||||
gaslimit numeric,
|
||||
gasprice numeric,
|
||||
input_data bytea,
|
||||
nonce numeric,
|
||||
raw bytea,
|
||||
tx_from text,
|
||||
tx_to text
|
||||
tx_index integer,
|
||||
tx_to text,
|
||||
value numeric
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user