forked from cerc-io/ipld-eth-server
btc cid indexer
This commit is contained in:
@@ -4,8 +4,7 @@ CREATE TABLE btc.tx_inputs (
|
||||
tx_id INTEGER NOT NULL REFERENCES btc.transaction_cids (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
|
||||
index INTEGER NOT NULL,
|
||||
tx_witness BYTEA[],
|
||||
sequence INTEGER NOT NULL,
|
||||
script BYTEA NOT NULL,
|
||||
sig_script BYTEA NOT NULL,
|
||||
outpoint_hash VARCHAR(66) NOT NULL,
|
||||
outpoint_index INTEGER NOT NULL,
|
||||
UNIQUE (tx_id, index)
|
||||
|
||||
@@ -4,7 +4,7 @@ CREATE TABLE btc.tx_outputs (
|
||||
tx_id INTEGER NOT NULL REFERENCES btc.transaction_cids (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
|
||||
index INTEGER NOT NULL,
|
||||
value INTEGER NOT NULL,
|
||||
script BYTEA NOT NULL,
|
||||
pk_script BYTEA NOT NULL,
|
||||
UNIQUE (tx_id, index)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user