Links the network store getTree to the local store.

This commit is contained in:
benbierens 2023-10-14 15:40:55 +02:00 committed by Dmitriy Ryajov
parent 7db3f1ac0b
commit baeb707097
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4

View File

@ -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
##