Skip to content

Commit 5afa954

Browse files
committed
fix(exporter, relays): fix argument order on insert
1 parent bb75d7b commit 5afa954

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

backend/pkg/commons/db2/consensus.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,14 @@ func (c *ConsensusDB) SaveBlockTagsAndRelays(tagID string, payload types.BidTrac
252252
blocks.slot = $2 and
253253
blocks.exec_block_hash = $3
254254
ON CONFLICT (block_slot, block_root, tag_id) DO NOTHING`,
255-
tagID, payload.Slot, payload.Value,
255+
tagID,
256+
payload.Slot,
256257
utils.MustParseHex(payload.BlockHash),
258+
payload.Value,
257259
utils.MustParseHex(payload.BuilderPubkey),
258260
utils.MustParseHex(payload.ProposerPubkey),
259-
utils.MustParseHex(payload.ProposerFeeRecipient))
261+
utils.MustParseHex(payload.ProposerFeeRecipient),
262+
)
260263

261264
if err != nil {
262265
log.Error(fmt.Errorf("failed to insert payload into relays_blocks table"), "", 0, map[string]interface{}{"relay": tagID})

0 commit comments

Comments
 (0)