Merge pull request #5180 from zzx234234/fix-truncating-sector-log

fix a coding error in truncating sector log, issue #4746
This commit is contained in:
Łukasz Magiera 2020-12-17 11:05:44 +01:00 committed by GitHub
commit c11803ad55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)