forwar getCidAndProof to local store

This commit is contained in:
Dmitriy Ryajov 2024-01-16 20:30:44 -06:00
parent b33ddb347b
commit 48e7d809dc
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
2 changed files with 10 additions and 1 deletions

View File

@ -89,7 +89,7 @@ method getCidAndProof*(
## Get a block proof from the blockstore
##
raiseAssert("putCidAndProof not implemented!")
raiseAssert("getCidAndProof not implemented!")
method ensureExpiry*(
self: BlockStore,

View File

@ -86,6 +86,15 @@ method putCidAndProof*(
proof: CodexProof): Future[?!void] =
self.localStore.putCidAndProof(treeCid, index, blockCid, proof)
method getCidAndProof*(
self: NetworkStore,
treeCid: Cid,
index: Natural): Future[?!(Cid, CodexProof)] =
## Get a block proof from the blockstore
##
self.localStore.getCidAndProof(treeCid, index)
method ensureExpiry*(
self: NetworkStore,
cid: Cid,