diff --git a/codex/stores/networkstore.nim b/codex/stores/networkstore.nim index 62f4cd19..2c64b4fd 100644 --- a/codex/stores/networkstore.nim +++ b/codex/stores/networkstore.nim @@ -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 ##