haskoin-store 0.18.0 → 0.18.1
raw patch · 4 files changed
+13/−17 lines, 4 files
Files
- CHANGELOG.md +10/−6
- haskoin-store.cabal +2/−2
- src/Network/Haskoin/Store/Data.hs +1/−7
- src/Network/Haskoin/Store/Web.hs +0/−2
CHANGELOG.md view
@@ -4,6 +4,10 @@ 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.18.1+### Removed+- Remove transaction count from xpub summary object.+ ## 0.18.0 ### Changed - Simplified limits and start point handling on web API.@@ -16,8 +20,8 @@ - Block hash as starting point. - Timestamp as starting point. - Configurable xpub gap limit.-- Transaction count added to XPub Summary.-- UTXO count added to XPub Summary.+- Transaction count added to xpub summary.+- UTXO count added to xpub summary. ### Removed - Mempool endpoint now has no limits or offsets and always returns full list.@@ -103,15 +107,15 @@ ## 0.15.0 ### Removed-- `PreciseUnixTime` data type no longer exists.+- Removed `PreciseUnixTime` data type. ### Changed-- Use `Word64` for Unix time representation.+- Use 64 bits for Unix time representation. - Data model now uses simplified Unix time representation. ## 0.14.9 ### Added-- Last external/change index information to `XPubSummary` object.+- Last external/change index information to xpub summary object. ## 0.14.8 ### Added@@ -164,7 +168,7 @@ - Extra debug logging. ### Changed-- Bump `haskoin-core` nad `haskoin-node`.+- Bump `haskoin-core` and `haskoin-node`. ## 0.13.1 ### Changed
haskoin-store.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: d74abcf656d9e3a1435569934046c4b9ad0b5ee8113bf6ec820f5553a7070ad7+-- hash: 066447f4e026bf4245ce352b8b226fb902985a6fe266ee826552123b8b3c4792 name: haskoin-store-version: 0.18.0+version: 0.18.1 synopsis: Storage and index for Bitcoin and Bitcoin Cash description: Store blocks, transactions, and balances for Bitcoin or Bitcoin Cash, and make that information via REST API. category: Bitcoin, Finance, Network
src/Network/Haskoin/Store/Data.hs view
@@ -918,7 +918,6 @@ , xPubSummaryZero :: !Word64 , xPubSummaryReceived :: !Word64 , xPubUnspentCount :: !Word64- , xPubTxCount :: !Word64 , xPubExternalIndex :: !Word32 , xPubChangeIndex :: !Word32 , xPubSummaryPaths :: !(HashMap Address [KeyIndex])@@ -930,7 +929,6 @@ , xPubSummaryZero = z , xPubSummaryReceived = r , xPubUnspentCount = u- , xPubTxCount = t , xPubSummaryPaths = ps , xPubExternalIndex = ext , xPubChangeIndex = ch@@ -941,7 +939,6 @@ , "unconfirmed" .= z , "received" .= r , "utxo" .= u- , "txs" .= t ] , "indices" .= object ["change" .= ch, "external" .= ext] , "paths" .= object (mapMaybe (uncurry f) (M.toList ps))@@ -964,7 +961,6 @@ , xPubSummaryZero = z , xPubSummaryReceived = r , xPubUnspentCount = u- , xPubTxCount = t , xPubExternalIndex = ext , xPubChangeIndex = ch , xPubSummaryPaths = ps@@ -973,7 +969,6 @@ put z put r put u- put t put ext put ch put (map (first (runPut . binSerial net)) (M.toList ps))@@ -982,7 +977,6 @@ z <- get r <- get u <- get- t <- get ext <- get ch <- get ps <- get@@ -992,7 +986,7 @@ case k of Right a -> return (a, v) Left _ -> mzero- return $ XPubSummary c z r u t ext ch (M.fromList ys)+ return $ XPubSummary c z r u ext ch (M.fromList ys) data HealthCheck = HealthCheck { healthHeaderBest :: !(Maybe BlockHash)
src/Network/Haskoin/Store/Web.hs view
@@ -1010,7 +1010,6 @@ [ c | XPubBal {xPubBal = Balance {balanceUnspentCount = c}} <- bs ]- ct = sum [c | XPubBal {xPubBal = Balance {balanceTxCount = c}} <- bs] xt = [b | b@XPubBal {xPubBalPath = [0, _]} <- bs] rx = sum@@ -1023,7 +1022,6 @@ , xPubSummaryZero = sum (map (balanceZero . xPubBal) bs) , xPubSummaryReceived = rx , xPubUnspentCount = uc- , xPubTxCount = ct , xPubSummaryPaths = pm , xPubChangeIndex = ch , xPubExternalIndex = ex