haskoin-store 0.52.0 → 0.52.1
raw patch · 4 files changed
+15/−4 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +7/−0
- haskoin-store.cabal +2/−2
- src/Haskoin/Store/Database/Reader.hs +1/−1
- src/Haskoin/Store/Web.hs +5/−1
CHANGELOG.md view
@@ -4,6 +4,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html) +## 0.52.1+### Changed+- Stream multiple transactions when requested.++### Fixed+- Fix missing unspent outputs.+ ## 0.52.0 ### Changed - Remove unnecessary performance optimisations.
haskoin-store.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 78e1694f8db6dab25d0a46bec8ac4221798c460aa51eb92f60c674676fb773fa+-- hash: 05d6d6bcf4ce4c12ea4fc9dc75e2fe9eb78bb20069ac60c2b8d3486ec4c9bc3f name: haskoin-store-version: 0.52.0+version: 0.52.1 synopsis: Storage and index for Bitcoin and Bitcoin Cash description: Please see the README on GitHub at <https://github.com/haskoin/haskoin-store#readme> category: Bitcoin, Finance, Network
src/Haskoin/Store/Database/Reader.hs view
@@ -240,7 +240,7 @@ applyLimits limits . sortOn Down . concat <$> mapM f addrs where l = deOffset limits- f a = liftIO . withIterCF db (addrTxCF db) $ \it ->+ f a = liftIO . withIterCF db (addrOutCF db) $ \it -> runConduit $ unspentConduit a bdb (start l) it .| applyLimitC (limit l) .|
src/Haskoin/Store/Web.hs view
@@ -925,7 +925,11 @@ (MonadUnliftIO m, MonadLoggerIO m) => GetTxs -> WebT m [Transaction] scottyTxs (GetTxs txids) = do setMetrics txStat (length txids)- catMaybes <$> mapM getTransaction (nub txids)+ catMaybes <$> mapM f (nub txids)+ where+ f x = lift $ withRunInIO $ \run ->+ unsafeInterleaveIO . run $+ getTransaction x scottyTxRaw :: (MonadUnliftIO m, MonadLoggerIO m) => GetTxRaw -> WebT m (RawResult Tx)