forwar getCidAndProof to local store
This commit is contained in:
parent
b33ddb347b
commit
48e7d809dc
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue