Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshvanahalli committed Apr 9, 2024
1 parent 00193d0 commit bae6788
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
7 changes: 0 additions & 7 deletions arbnode/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 4 additions & 4 deletions cmd/replay/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bae6788

Please sign in to comment.