fix a coding error in truncating sector log

This commit is contained in:
zzx234234 2020-12-11 11:31:36 +08:00
parent 65b921c62c
commit 7db5e8061d

View File

@ -196,7 +196,7 @@ func (m *Sealing) plan(events []statemachine.Event, state *SectorInfo) (func(sta
Kind: fmt.Sprintf("truncate"), Kind: fmt.Sprintf("truncate"),
} }
state.Log = append(state.Log[:2000], state.Log[:6000]...) state.Log = append(state.Log[:2000], state.Log[6000:]...)
} }
state.Log = append(state.Log, l) state.Log = append(state.Log, l)