6cbeb9aad6
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. |
||
---|---|---|
.. | ||
basefee_test.go | ||
basefee.go | ||
checkpoint_test.go | ||
coalescer_test.go | ||
coalescer.go | ||
fts.go | ||
index_test.go | ||
index.go | ||
messages.go | ||
snapshot.go | ||
store_test.go | ||
store.go |