Skip to content

Commit eb143fb

Browse files
committed
block headers
1 parent e9f7efc commit eb143fb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

internal/publisher/publisher.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,16 @@ func (p *Publisher) createBlockMessage(block common.Block, status string) (*kgo.
271271
Topic: p.getTopicName("blocks"),
272272
Key: []byte(fmt.Sprintf("block-%s-%s-%s", status, block.ChainId.String(), block.Hash)),
273273
Value: msgJson,
274+
Headers: []kgo.RecordHeader{
275+
{
276+
Key: "chain_id",
277+
Value: []byte(block.ChainId.String()),
278+
},
279+
{
280+
Key: "block_number",
281+
Value: []byte(block.Number.String()),
282+
},
283+
},
274284
}, nil
275285
}
276286

0 commit comments

Comments
 (0)