mirror of https://github.com/voidlizard/hbs2
wip
This commit is contained in:
parent
6293fdebf2
commit
241b6346b5
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue