nim-codex/codex/stores
Michael Bradley, Jr 3d823dcbc6 [stores] update getBlock return type
change return type for `method getBlock` from `Future[?!(?Block)]` to
`Future[?!Block]`

use `type BlockNotFoundError = object of CodexError` to differentiate between
"block not found in the store" and other errors

also make some logic and error handling/messages more consistent across
BlockStore implementations

closes #177
closes #182
closes #210

alternative to #205, #209
2022-08-22 20:52:51 -05:00
..
blockstore.nim [stores] update getBlock return type 2022-08-22 20:52:51 -05:00
cachestore.nim [stores] update getBlock return type 2022-08-22 20:52:51 -05:00
fsstore.nim [stores] update getBlock return type 2022-08-22 20:52:51 -05:00
networkstore.nim [stores] update getBlock return type 2022-08-22 20:52:51 -05:00
sqlitestore.nim [stores] update getBlock return type 2022-08-22 20:52:51 -05:00