Skip to content

Commit

Permalink
Merge branch 'master' into pk910/trigger-el-requests
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Nov 4, 2024
2 parents d195243 + 648becb commit e9f58f6
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 8 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
4 changes: 2 additions & 2 deletions ui-package/src/components/SubmitDepositsForm/DepositEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ const DepositEntry = (props: IDepositEntryProps): React.ReactElement => {
}
</button>
{errorModal && (
<Modal show={true} onHide={() => setErrorModal(null)} size="lg">
<Modal show={true} onHide={() => setErrorModal(null)} size="lg" className="submit-deposit-modal">
<Modal.Header closeButton>
<Modal.Title>Deposit Transaction Failed</Modal.Title>
</Modal.Header>
<Modal.Body>
<pre className="m-0">{errorModal}</pre>
<pre className="m-0 deposit-error">{errorModal}</pre>
</Modal.Body>
<Modal.Footer>
<button className="btn btn-primary" onClick={() => setErrorModal(null)}>Close</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

.submit-deposit-modal {
.deposit-error {
text-wrap: wrap;
word-break: break-word;
}
}

0 comments on commit e9f58f6

Please sign in to comment.