Files
lotus/chain/store
Steven Allen 6cbeb9aad6 fix: sync: atomically switch chains when checkpointing (#11595)
We can now atomically switch chains when checkpointing. Previously,
we'd call `SetHead` followed by `SetCheckpoint`. Unfortunately, that's
not atomic and the "head" could have reverted before we called
`SetCheckpoint` (causing the latter to fail).

Now, we just call `SetCheckpoint` and let `SetCheckpoint` adjust our
head. This changes the behavior of `ChainStore.SetCheckpoint`, but
`Syncer.SyncCheckpoint` is the only caller anyways.
2024-01-26 08:50:32 -08:00
..
2022-06-14 17:00:51 +02:00
2022-08-29 16:25:30 +02:00
2022-08-29 16:25:30 +02:00
2022-06-14 17:00:51 +02:00
2023-05-19 20:02:47 +02:00
2023-10-24 10:02:28 -07:00