Merge pull request #1101 from filecoin-project/patch/faulty-declare

fixup bitfield serialization in manual faulty sector handler
This commit is contained in:
Jakub Sztandera 2020-01-17 18:19:35 +01:00 committed by GitHub
commit fd76216652
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))
}