packages feed

haskoin-store-data 0.64.6 → 0.64.7

raw patch · 3 files changed

+11/−6 lines, 3 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Haskoin.Store.Data: toBinfoAddrs :: HashMap Address Balance -> HashMap XPubKey [XPubBal] -> HashMap XPubKey Int -> [BinfoBalance]
+ Haskoin.Store.Data: toBinfoAddrs :: HashMap Address Balance -> HashMap XPubSpec [XPubBal] -> HashMap XPubSpec Word64 -> [BinfoBalance]

Files

CHANGELOG.md view
@@ -4,6 +4,11 @@ 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.64.7+### Fixed+- Optimisations for various Blockchain endpoints.+- More accurate item counts for various web endpoints.+ ## 0.64.6 ### Fixed - Record cache index time just once per xpub.
haskoin-store-data.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 7906dee7117bfcc10547fb22bf8f7c8cb911d86789f386ad1ddb5600ececf575+-- hash: 76f274c78531ac5c9255daff075b1c2876704184a4879a99b06fff516cc97e1d  name:           haskoin-store-data-version:        0.64.6+version:        0.64.7 synopsis:       Data for Haskoin Store description:    Please see the README on GitHub at <https://github.com/haskoin/haskoin-store#readme> category:       Bitcoin, Finance, Network
src/Haskoin/Store/Data.hs view
@@ -3316,8 +3316,8 @@  toBinfoAddrs ::     HashMap Address Balance ->-    HashMap XPubKey [XPubBal] ->-    HashMap XPubKey Int ->+    HashMap XPubSpec [XPubBal] ->+    HashMap XPubSpec Word64 ->     [BinfoBalance] toBinfoAddrs only_addrs only_xpubs xpub_txs =     xpub_bals <> addr_bals@@ -3333,11 +3333,11 @@             received = sum (map f xs)             bal = fromIntegral (sum (map g xs))             sent = if bal <= received then received - bal else 0-            count = maybe 0 fromIntegral $ HashMap.lookup k xpub_txs+            count = HashMap.lookupDefault 0 k xpub_txs             ax = foldl max 0 (map (i 0) xs)             cx = foldl max 0 (map (i 1) xs)          in BinfoXPubBalance-                { getBinfoXPubKey = k+                { getBinfoXPubKey = xPubSpecKey k                 , getBinfoAddrTxCount = count                 , getBinfoAddrReceived = received                 , getBinfoAddrSent = sent