mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-16 12:23:07 +00:00
Links the network store getTree to the local store.
This commit is contained in:
parent
7db3f1ac0b
commit
baeb707097
@ -144,6 +144,9 @@ method hasBlock*(self: NetworkStore, cid: Cid): Future[?!bool] {.async.} =
|
||||
trace "Checking network store for block existence", cid
|
||||
return await self.localStore.hasBlock(cid)
|
||||
|
||||
method getTree*(self: NetworkStore, treeCid: Cid): Future[?!MerkleTree] =
|
||||
self.localStore.getTree(treeCid)
|
||||
|
||||
method close*(self: NetworkStore): Future[void] {.async.} =
|
||||
## Close the underlying local blockstore
|
||||
##
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user