From baeb7070970abe4d206c3f92961e7652dcaf35ec Mon Sep 17 00:00:00 2001 From: benbierens Date: Sat, 14 Oct 2023 15:40:55 +0200 Subject: [PATCH] Links the network store getTree to the local store. --- codex/stores/networkstore.nim | 3 +++ 1 file changed, 3 insertions(+) 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 ##