From 4a07cf82b1c5185ce3ea080db024b00afcf07ee8 Mon Sep 17 00:00:00 2001 From: Jeffery Walsh Date: Wed, 27 Nov 2024 15:58:50 -0800 Subject: [PATCH] p2p network --- packages/taiko-client/driver/driver.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/taiko-client/driver/driver.go b/packages/taiko-client/driver/driver.go index cb3f039b97d..3bdc850fd3e 100644 --- a/packages/taiko-client/driver/driver.go +++ b/packages/taiko-client/driver/driver.go @@ -172,7 +172,15 @@ func (d *Driver) Start() error { return err }); err != nil { - log.Error("Failed to join soft block topic", "error", err) + slog.Error("Failed to join soft block topic", "error", err) + } + + if err := p2p.SubscribeToTopic[softblocks.TransactionBatch]( + d.ctx, + d.p2pnetwork, + p2p.TopicNameSoftBlocks, + ); err != nil { + slog.Error("Failed to subscribe to soft block topic", "error", err) } }() }