Feed existing state into state res when calculating state from new extremities

This commit is contained in:
Neil Alexander 2022-05-12 12:38:30 +01:00
parent fc670f03a2
commit d6d61c3707
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -237,7 +237,7 @@ func (u *latestEventsUpdater) latestState() error {
// include the new event from the input path, depending on whether
// it is a forward extremity or not.
latestStateAtEvents := make([]types.StateAtEvent, len(u.latest))
for i := range u.latest {
for i := range append(u.latest, u.oldLatest...) {
latestStateAtEvents[i] = u.latest[i].StateAtEvent
}