From 6e4761c819f7ba862aeb4c80baeeecdf674d9923 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Sat, 7 Dec 2019 15:51:31 +0100 Subject: [PATCH] Fix rleplus in actor code , License: MIT Signed-off-by: Jakub Sztandera --- chain/actors/actor_miner.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chain/actors/actor_miner.go b/chain/actors/actor_miner.go index 0ae52a059..70eed93de 100644 --- a/chain/actors/actor_miner.go +++ b/chain/actors/actor_miner.go @@ -477,7 +477,10 @@ func (sma StorageMinerActor) SubmitFallbackPoSt(act *types.Actor, vmctx types.VM return nil, aerrors.Absorb(err, 3, "could not decode sectorset") } - faults := self.CurrentFaultSet.All() + faults, nerr := self.CurrentFaultSet.All() + if nerr != nil { + return nil, aerrors.Absorb(err, 5, "RLE+ invalid") + } _ = faults proverID := vmctx.Message().To // TODO: normalize to ID address