From fdacdcf7ef54500a298fbff2f4bc8114226c3a03 Mon Sep 17 00:00:00 2001 From: colindickson Date: Thu, 29 Aug 2024 09:53:52 -0400 Subject: [PATCH] tools: add logger to MergedBlocksWriter to avoid panic --- cmd/tools/mergeblock/tools_upgrade_merged_blocks.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/tools/mergeblock/tools_upgrade_merged_blocks.go b/cmd/tools/mergeblock/tools_upgrade_merged_blocks.go index ad476a6..ca9e629 100644 --- a/cmd/tools/mergeblock/tools_upgrade_merged_blocks.go +++ b/cmd/tools/mergeblock/tools_upgrade_merged_blocks.go @@ -54,6 +54,7 @@ func getMergedBlockUpgrader(tweakFunc func(block *pbbstream.Block) (*pbbstream.B LowBlockNum: firecore.LowBoundary(start), StopBlockNum: stop, TweakBlock: tweakFunc, + Logger: rootLog, } stream := stream.New(nil, sourceStore, nil, int64(start), writer, stream.WithFinalBlocksOnly())