lotus/blockstore
vyzo 3a9b7c592d mark from current epoch to boundary epoch when necessary
this is necessary to avoid wearing clown shoes when the node stays
offline for an extended period of time (more than 1 finality).

Basically it gets quite slow if we do the full 2 finality walk, so we
try to avoid it unless necessary.
The conditions under which a full walk is necessary is if there is a
sync gap (most likely because the node was offline) during which the
tracking of writes is inaccurate because we have not yet delivered the
HeadChange notification.  In this case, it is possible to have
actually hot blocks to be tracked before the boundary and fail to mark
them accordingly.  So when we detect a sync gap, we do the full walk;
if there is no sync gap, we can just use the much faster boundary
epoch walk.
2021-07-04 18:38:28 +03:00
..
badger Merge pull request #5794 from filecoin-project/fix/atomic-first 2021-03-25 13:29:59 +01:00
splitstore mark from current epoch to boundary epoch when necessary 2021-07-04 18:38:28 +03:00
api.go rename blockstores for consistency. 2021-01-29 23:17:25 +00:00
blockstore.go fix FromDatastore to not do double adapting 2021-03-05 14:46:18 +02:00
buffered.go add DeleteMany to Blockstore interface 2021-03-05 14:46:18 +02:00
doc.go refine docs. 2021-01-29 23:24:44 +00:00
fallback.go segregate chain and state blockstores. 2021-02-28 22:49:44 +00:00
idstore.go satisfy linter, use Prefix for common path of non inline CIDs 2021-03-05 14:46:18 +02:00
ipfs.go Merge branch 'master' into refactor/lib/blockstore 2021-02-28 19:55:23 +00:00
mem.go add DeleteMany to Blockstore interface 2021-03-05 14:46:18 +02:00
metrics.go segregate chain and state blockstores. 2021-02-28 22:49:44 +00:00
noop.go noop blockstore 2021-07-04 18:38:28 +03:00
sync.go add DeleteMany to Blockstore interface 2021-03-05 14:46:18 +02:00
timed_test.go rename blockstores for consistency. 2021-01-29 23:17:25 +00:00
timed.go fix: avoid holding a lock while calling the View callback 2021-03-11 20:03:38 -08:00
union_test.go implement blockstore.Union, a union blockstore. 2021-03-02 17:03:11 +00:00
union.go implement DeleteMany in union blockstore 2021-03-05 14:46:18 +02:00