Fix a comment

This commit is contained in:
Tomasz Bekas 2023-11-04 08:00:53 +01:00
parent 67a0fb4df9
commit 5277a12d50
No known key found for this signature in database
GPG Key ID: 4854E04C98824959

View File

@ -34,25 +34,25 @@ method getBlock*(self: BlockStore, cid: Cid): Future[?!Block] {.base.} =
## Get a block from the blockstore
##
raiseAssert("getBlock by cid Not implemented!")
raiseAssert("getBlock by cid not implemented!")
method getBlock*(self: BlockStore, treeCid: Cid, index: Natural): Future[?!Block] {.base.} =
## Get a block from the blockstore
##
raiseAssert("getBlock by treecid Not implemented!")
raiseAssert("getBlock by treecid not implemented!")
method getBlock*(self: BlockStore, address: BlockAddress): Future[?!Block] {.base.} =
## Get a block from the blockstore
##
raiseAssert("getBlock by addr Not implemented!")
raiseAssert("getBlock by addr not implemented!")
method getBlockAndProof*(self: BlockStore, treeCid: Cid, index: Natural): Future[?!(Block, MerkleProof)] {.base.} =
## Get a block and associated inclusion proof by Cid of a merkle tree and an index of a leaf in a tree
##
raiseAssert("getBlockAndProof Not implemented!")
raiseAssert("getBlockAndProof not implemented!")
method putBlock*(
self: BlockStore,
@ -62,9 +62,8 @@ method putBlock*(
## Put a block to the blockstore
##
raiseAssert("putBlock Not implemented!")
raiseAssert("putBlock not implemented!")
# I cant use `BlockAddress` to wrap (treeCid, index) here. because as far as I know there's no way in Nim to force `assert(leaf == true)` in a compile time
method putBlockCidAndProof*(
self: BlockStore,
treeCid: Cid,
@ -75,31 +74,31 @@ method putBlockCidAndProof*(
## Put a block to the blockstore
##
raiseAssert("putBlockCidAndProof Not implemented!")
raiseAssert("putBlockCidAndProof not implemented!")
method delBlock*(self: BlockStore, cid: Cid): Future[?!void] {.base.} =
## Delete a block from the blockstore
##
raiseAssert("Not implemented!")
raiseAssert("delBlock not implemented!")
method delBlock*(self: BlockStore, treeCid: Cid, index: Natural): Future[?!void] {.base.} =
## Delete a block from the blockstore
##
raiseAssert("Not implemented!")
raiseAssert("delBlock not implemented!")
method hasBlock*(self: BlockStore, cid: Cid): Future[?!bool] {.base.} =
## Check if the block exists in the blockstore
##
raiseAssert("Not implemented!")
raiseAssert("hasBlock not implemented!")
method hasBlock*(self: BlockStore, tree: Cid, index: Natural): Future[?!bool] {.base.} =
## Check if the block exists in the blockstore
##
raiseAssert("Not implemented!")
raiseAssert("hasBlock not implemented!")
method listBlocks*(
self: BlockStore,
@ -107,14 +106,14 @@ method listBlocks*(
## Get the list of blocks in the BlockStore. This is an intensive operation
##
raiseAssert("Not implemented!")
raiseAssert("listBlocks not implemented!")
method close*(self: BlockStore): Future[void] {.base.} =
## Close the blockstore, cleaning up resources managed by it.
## For some implementations this may be a no-op
##
raiseAssert("Not implemented!")
raiseAssert("close not implemented!")
proc contains*(self: BlockStore, blk: Cid): Future[bool] {.async.} =
## Check if the block exists in the blockstore.