From 2a7dcb6e1777c72f9d7c0c1f2897a56949d67112 Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Fri, 17 Jan 2020 00:13:00 -0800 Subject: [PATCH] fixup bitfield serialization in manual faulty sector handler --- storage/sector_states.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/storage/sector_states.go b/storage/sector_states.go index f3c2a4b44..266c0012b 100644 --- a/storage/sector_states.go +++ b/storage/sector_states.go @@ -242,8 +242,7 @@ func (m *Miner) handleFaulty(ctx context.Context, sector SectorInfo) *sectorUpda bf.Set(sector.SectorID) fp := &actors.DeclareFaultsParams{bf} - _ = fp - enc, aerr := actors.SerializeParams(nil) + enc, aerr := actors.SerializeParams(fp) if aerr != nil { return sector.upd().fatal(xerrors.Errorf("failed to serialize declare fault params: %w", aerr)) }