This commit is contained in:
voidlizard 2025-08-14 08:20:28 +03:00
parent 6293fdebf2
commit 241b6346b5
2 changed files with 3 additions and 1 deletions

View File

@ -37,6 +37,8 @@ instance Exception WriteMerkleIOError
instance (MonadIO m, h ~ HbSync, Storage s h ByteString m) => MerkleWriter ByteString h s m where
type instance ToBlockW ByteString = ByteString
-- FIXME: concurrent-enqueue
writeAsMerkle sto bs = do
hashes <- do

View File

@ -22,7 +22,7 @@ instance MonadUnliftIO m => Storage NCQStorage HbSync LBS.ByteString m where
putBlock sto lbs = fmap coerce <$> ncqPutBlock sto lbs
enqueueBlock sto lbs = fmap coerce <$> ncqPutBlock sto lbs
enqueueBlock sto lbs = fmap coerce <$> ncqTossBlock sto lbs
getBlock sto h = runMaybeT $ do
bs <- MaybeT (ncqStorageGetBlock sto (coerce h))