Skip to content

Commit

Permalink
Merge branch 'master' into pk910/mini-launchpad-checks
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Nov 4, 2024
2 parents 8c8cc42 + 648becb commit 6461595
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion db/consolidation_request_txs.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func InsertConsolidationRequestTxs(consolidationTxs []*dbtypes.ConsolidationRequ
argIdx += fieldCount
}
fmt.Fprint(&sql, EngineQuery(map[dbtypes.DBEngineType]string{
dbtypes.DBEnginePgsql: " ON CONFLICT (block_number, block_index) DO UPDATE SET source_index = excluded.source_index, target_index = excluded.target_index, fork_id = excluded.fork_id",
dbtypes.DBEnginePgsql: " ON CONFLICT (block_root, block_index) DO UPDATE SET source_index = excluded.source_index, target_index = excluded.target_index, fork_id = excluded.fork_id",
dbtypes.DBEngineSqlite: "",
}))

Expand Down
2 changes: 1 addition & 1 deletion db/consolidation_requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func InsertConsolidationRequests(consolidations []*dbtypes.ConsolidationRequest,
argIdx += fieldCount
}
fmt.Fprint(&sql, EngineQuery(map[dbtypes.DBEngineType]string{
dbtypes.DBEnginePgsql: " ON CONFLICT (slot_index, slot_root) DO UPDATE SET orphaned = excluded.orphaned, fork_id = excluded.fork_id",
dbtypes.DBEnginePgsql: " ON CONFLICT (slot_root, slot_index) DO UPDATE SET orphaned = excluded.orphaned, fork_id = excluded.fork_id",
dbtypes.DBEngineSqlite: "",
}))
_, err := tx.Exec(sql.String(), args...)
Expand Down
2 changes: 1 addition & 1 deletion db/schema/pgsql/20240805095505_pectra-updates2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CREATE TABLE IF NOT EXISTS public."consolidation_requests" (
target_index BIGINT NULL,
target_pubkey bytea NULL,
tx_hash bytea NULL,
CONSTRAINT consolidation_pkey PRIMARY KEY (slot_root, slot_index)
CONSTRAINT consolidation_requests_pkey PRIMARY KEY (slot_root, slot_index)
);

CREATE INDEX IF NOT EXISTS "consolidation_requests_slot_idx"
Expand Down
2 changes: 1 addition & 1 deletion db/schema/pgsql/20241006182734_pectra-updates3.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ CREATE TABLE IF NOT EXISTS public."consolidation_request_txs" (
tx_sender bytea NOT NULL,
tx_target bytea NOT NULL,
dequeue_block BIGINT NOT NULL,
CONSTRAINT consolidation_pkey PRIMARY KEY (block_root, block_index)
CONSTRAINT consolidation_request_txs_pkey PRIMARY KEY (block_root, block_index)
);

CREATE INDEX IF NOT EXISTS "consolidation_request_txs_block_number_idx"
Expand Down
2 changes: 1 addition & 1 deletion db/schema/sqlite/20240805095505_pectra-updates2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CREATE TABLE IF NOT EXISTS "consolidation_requests" (
target_index BIGINT NULL,
target_pubkey BLOB NULL,
tx_hash BLOB NULL,
CONSTRAINT consolidation_pkey PRIMARY KEY (slot_root, slot_index)
CONSTRAINT consolidation_requests_pkey PRIMARY KEY (slot_root, slot_index)
);

CREATE INDEX IF NOT EXISTS "consolidation_requests_slot_idx"
Expand Down
2 changes: 1 addition & 1 deletion db/schema/sqlite/20241006182734_pectra-updates3.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ CREATE TABLE IF NOT EXISTS "consolidation_request_txs" (
tx_sender BLOB NOT NULL,
tx_target BLOB NOT NULL,
dequeue_block BIGINT NOT NULL,
CONSTRAINT consolidation_pkey PRIMARY KEY (block_root, block_index)
CONSTRAINT consolidation_request_txs_pkey PRIMARY KEY (block_root, block_index)
);

CREATE INDEX IF NOT EXISTS "consolidation_request_txs_block_number_idx"
Expand Down

0 comments on commit 6461595

Please sign in to comment.