Commit Graph

1389 Commits

Author SHA1 Message Date
Matias Alejo Garcia e36cdb717a rm empty keys 2016-02-11 10:42:30 -05:00
Matias Alejo Garcia 4d03aaa73f use mocknode 2016-02-10 16:18:27 -05:00
Matias Alejo Garcia 6e600b5def refactor test 2016-02-10 16:08:27 -05:00
Matias Alejo Garcia 1a68ca4fae add tests to _updateAddressIndex 2016-02-10 15:38:02 -05:00
Matias Alejo Garcia 02f2234004 rm extra commas 2016-02-10 15:05:05 -05:00
Matias Alejo Garcia 3bb3d82aac add counter for address mempool index 2016-02-10 15:03:34 -05:00
Matias Alejo Garcia e7895b4b34 use key as binary 2016-02-09 15:30:40 -05:00
Matias Alejo Garcia d0c2fa61d8 fix tests 2016-02-09 10:57:40 -05:00
Matias Alejo Garcia 9f87156adc fix format 2016-02-09 10:26:09 -05:00
Matias Alejo Garcia dae5c9d3d5 fix regtests 2016-02-08 15:07:32 -05:00
Matias Alejo Garcia c65c2bad20 add mempoolADdressIndex test 2016-02-08 13:40:27 -05:00
Matias Alejo Garcia c1d3f351f2 add address index to mempool + noBalance options 2016-02-08 13:21:53 -05:00
Matias Alejo Garcia e7e33313cf add noBalance options + mempoolAddressIndex 2016-02-08 12:50:32 -05:00
Chris Kleeschulte 6a899e4b9c Merge pull request #403 from braydonf/bug/limit-addresses
Address Service: Limit the number of simultaneous requests
2016-02-02 14:25:13 -05:00
Braydon Fuller 93e5dbfc34 Address Service: Limit the number of simultaneous requests 2016-02-02 13:27:45 -05:00
Chris Kleeschulte ca19994326 Bump development version to v2.0.1-dev 2016-02-01 15:49:20 -05:00
Chris Kleeschulte 0311d137ae Bump development version to v2.0.1 2016-02-01 14:41:30 -05:00
Braydon Fuller c3a549c9f1 Merge pull request #402 from kleetus/feature/leveldown_arm_builds
Added ARM prebuilt binaries for Leveldown
2016-02-01 13:57:49 -05:00
Chris Kleeschulte b80e3e19e2 Added ARM prebuilt binaries for Leveldown
- this is necessary because leveldown does not supply an ARM binary
- butcher needs a binary so that compiler tool chains are not necessary
2016-02-01 13:42:08 -05:00
Braydon Fuller 3e4fc878a8 Merge pull request #401 from kleetus/arm_support
Added arm support.
2016-01-29 16:48:41 -05:00
Chris Kleeschulte 663b100084 Added arm support. 2016-01-29 13:40:45 -05:00
Chris Kleeschulte c091ca9d67 Bump development version to v2.0.0-dev 2016-01-28 15:17:00 -05:00
Chris Kleeschulte 419aa5785b Bump package version to v2.0.0 2016-01-28 14:31:58 -05:00
Chris Kleeschulte dab95ed765 Merge pull request #399 from braydonf/dbversion
DB Service: Include a version number for upgrading purposes
2016-01-28 13:59:49 -05:00
Braydon Fuller 995b4b57d4 DB: Include docs on how to recreate the database 2016-01-28 13:47:26 -05:00
Braydon Fuller 98bd8ee560 DB Service: Include a version number for upgrading purposes 2016-01-28 12:08:05 -05:00
Chris Kleeschulte b0a0f629e2 Merge pull request #392 from braydonf/large-queries
Memory optimizations for large address queries
2016-01-27 14:45:05 -05:00
Braydon Fuller 3d7fb6f234 Address Service: End stream without pausing first
There was an issue where streams would still be held open if "pause" was
called before "end", this would lead to http requests from the insight-api
not being returned with an error status as soon as possible but would
instead stay open.
2016-01-26 13:25:53 -05:00
Braydon Fuller a2acc0c80f Address Service: Fixed test for max address limit 2016-01-26 13:09:31 -05:00
Braydon Fuller 2850573e6e Merge pull request #396 from ralphtheninja/master
homepage link 404 on github
2016-01-19 15:02:51 -05:00
Lars-Magnus Skog 43e472707f homepage link 404 on github 2016-01-19 20:49:17 +01:00
Braydon Fuller 39f8355cd9 Address Service: Bump maximum number of addresses default 2016-01-19 14:07:28 -05:00
Braydon Fuller 45029030f1 Address Service: Sort after unconfirmed and confirmed 2016-01-18 16:16:53 -05:00
Braydon Fuller e498e0fac2 Address Service: Include default callback earlier 2016-01-18 16:03:37 -05:00
Braydon Fuller d4f2df5c51 Address Service: Sort mempool txids 2016-01-18 15:56:05 -05:00
Braydon Fuller a166b6af23 Address Service: Removed nolonger used constant for cache 2016-01-18 15:06:18 -05:00
Braydon Fuller 62934b4b66 Address Service: Removed event listeners prior to stopping 2016-01-18 15:00:55 -05:00
Braydon Fuller 687400eab2 Address Service: Added test for history `getAddressDetailsForTransaction` 2016-01-18 13:53:32 -05:00
Braydon Fuller 3d9b6d5532 Address Service: More tests for history 2016-01-18 12:59:49 -05:00
Braydon Fuller e79c00db10 Address Service: Updated tests and fixed various bugs 2016-01-15 18:04:32 -05:00
Braydon Fuller ead6c2f45f Address Service: Removed caching and added max query limits
Querying addresses that have millions of transactions is supported however
takes hundreds of seconds to fully calculate the balance. Creating a cache of
previous results wasn't currently working because the `isSpent` query is always
based on the current bitcoind tip. Thus the balance of the outputs would be included
however wouldn't be removed when spent as the output wouldn't be checked again
when querying for blocks past the last checkpoint. Including the satoshis in the
inputs address index would make it possible to subtract the spent amount,
however this degrades optimizations elsewhere. The syncing times or querying
for addresses with 10,000 transactions per address.

It may preferrable to have an additional address service that handles high-volume
addresses be on an opt-in basis so that a custom running client could select
high volume addresses to create optimizations for querying balances and history.
The strategies for creating indexes differs on these use cases.
2016-01-14 17:17:04 -05:00
Braydon Fuller 4fcec8755c Address Service: Fixed many bugs from tests
- Refactored getAddressSummary and added several tests
- Fixed bugs revealed from the integration regtests
- Updated many unit tests
2016-01-13 17:15:14 -05:00
Braydon Fuller 188ff28ec7 Address Service: Fixed HASH_TYPES_MAP naming issue 2016-01-11 16:51:00 -05:00
Braydon Fuller 8d2f69c5fd Address Service: Restored multi-address history queries
- Restored functionality to be able to query the history of multiple addresses in one query
- Sorted mempool transactions by timestamp in txid lists
2016-01-11 16:17:55 -05:00
Braydon Fuller 5c4f3c4453 Address Service: Use address summary cache for pagination 2016-01-11 16:17:55 -05:00
Braydon Fuller 8298e380ed Address Service: Use streams to combine inputs and outputs 2016-01-11 16:17:55 -05:00
Braydon Fuller cef2f7686d Address Service: Limit the length of outputs that can be queried at a time 2016-01-11 16:17:55 -05:00
Braydon Fuller 40eb4f50ae Address Service: Start to cache `getAddressSummary` based on range of block heights 2016-01-11 16:17:55 -05:00
Braydon Fuller cab25cf397 Address Service: Start to use streams for memory optimization with large queries 2016-01-11 16:17:55 -05:00
Chris Kleeschulte 7931062d57 Merge pull request #379 from STRML/bugfix/hashType
Fix #377; db must contain hash + type, not just hash.
2016-01-11 15:51:57 -05:00