From 51ab042c692a8c5a811b5def3cf9859e64b4e379 Mon Sep 17 00:00:00 2001 From: StefanGajic Date: Wed, 20 Jul 2022 18:57:39 +0200 Subject: [PATCH] correct error message in slashfilter --- pkg/chainsync/slashfilter/slashfilter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/chainsync/slashfilter/slashfilter.go b/pkg/chainsync/slashfilter/slashfilter.go index 6527e70cbf..7e65b87699 100644 --- a/pkg/chainsync/slashfilter/slashfilter.go +++ b/pkg/chainsync/slashfilter/slashfilter.go @@ -85,7 +85,7 @@ func (f *LocalSlashFilter) MinedBlock(ctx context.Context, bh *types.BlockHeader } if err := f.byParents.Put(ctx, parentsKey, bh.Cid().Bytes()); err != nil { - return fmt.Errorf("putting byEpoch entry: %w", err) + return fmt.Errorf("putting byParents entry: %w", err) } if err := f.byEpoch.Put(ctx, epochKey, bh.Cid().Bytes()); err != nil {