From bae6788d56cc113f5e54b00f864ae91b9dc245fa Mon Sep 17 00:00:00 2001 From: Ganesh Vanahalli Date: Tue, 9 Apr 2024 12:43:58 -0500 Subject: [PATCH] code cleanup --- arbnode/node.go | 7 ------- cmd/replay/main.go | 8 ++++---- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/arbnode/node.go b/arbnode/node.go index 2cd92d53fa..21f3a6fd85 100644 --- a/arbnode/node.go +++ b/arbnode/node.go @@ -552,13 +552,6 @@ func createNodeImpl( var statelessBlockValidator *staker.StatelessBlockValidator if config.BlockValidator.ValidationServerConfigs[0].URL != "" { - var dapReaders []daprovider.Reader - if daReader != nil { - dapReaders = append(dapReaders, daprovider.NewReaderForDAS(daReader)) - } - if blobReader != nil { - dapReaders = append(dapReaders, daprovider.NewReaderForBlobReader(blobReader)) - } statelessBlockValidator, err = staker.NewStatelessBlockValidator( inboxReader, inboxTracker, diff --git a/cmd/replay/main.go b/cmd/replay/main.go index d3a581b086..0b9214755d 100644 --- a/cmd/replay/main.go +++ b/cmd/replay/main.go @@ -211,12 +211,12 @@ func main() { if backend.GetPositionWithinMessage() > 0 { keysetValidationMode = daprovider.KeysetDontValidate } - var daProviders []daprovider.Reader + var dapReaders []daprovider.Reader if dasReader != nil { - daProviders = append(daProviders, daprovider.NewReaderForDAS(dasReader)) + dapReaders = append(dapReaders, daprovider.NewReaderForDAS(dasReader)) } - daProviders = append(daProviders, daprovider.NewReaderForBlobReader(&BlobPreimageReader{})) - inboxMultiplexer := arbstate.NewInboxMultiplexer(backend, delayedMessagesRead, daProviders, keysetValidationMode) + dapReaders = append(dapReaders, daprovider.NewReaderForBlobReader(&BlobPreimageReader{})) + inboxMultiplexer := arbstate.NewInboxMultiplexer(backend, delayedMessagesRead, dapReaders, keysetValidationMode) ctx := context.Background() message, err := inboxMultiplexer.Pop(ctx) if err != nil {