feat(chainsync): fixes to make graphsync work for chain fetching

- store to chain blockstore (ok for now, since storage provider is a seperate process)
- simplify request fetching and processing
This commit is contained in:
hannahhoward
2020-03-20 21:30:24 -07:00
committed by whyrusleeping
parent 1076a1a89d
commit 34f755b2b9
2 changed files with 28 additions and 27 deletions
+2 -2
View File
@@ -15,8 +15,8 @@ import (
)
// GraphsyncStorer creates a storer that stores data in the client blockstore
func GraphsyncStorer(clientBs dtypes.ClientBlockstore) dtypes.GraphsyncStorer {
return dtypes.GraphsyncStorer(storeutil.StorerForBlockstore(clientBs))
func GraphsyncStorer(chainBs dtypes.ChainBlockstore) dtypes.GraphsyncStorer {
return dtypes.GraphsyncStorer(storeutil.StorerForBlockstore(chainBs))
}
// GraphsyncLoader creates a loader that reads from both the chain blockstore and the client blockstore