Commit Graph

92 Commits

Author SHA1 Message Date
Chris Kleeschulte
8d98abd080 Cleaned up old code that may not make it into the next release. 2017-02-12 12:15:22 -05:00
Chris Kleeschulte
a52b8134f7 Added unit tests for encoding files. 2017-02-07 08:18:09 -05:00
Chris Kleeschulte
4310faa8f0 Split out encodings and nested all services into a directory. 2017-02-02 08:53:51 -05:00
Chris Kleeschulte
3051c04147 Called next to proceed with sync. 2017-02-01 10:21:23 -05:00
Patrick Nagurny
7e08651d95 import addresses 2017-01-31 17:09:59 -05:00
Patrick Nagurny
15b9bce0ac blockHandler for wallet-api service 2017-01-31 14:42:08 -05:00
Chris Kleeschulte
e2229a6516 Added Utxo index block handler. 2017-01-31 13:30:48 -05:00
Chris Kleeschulte
3b76463112 Unified all encodings/serialization functions into one,
centrally-accessible encodings file.
2017-01-31 08:00:28 -05:00
Chris Kleeschulte
fbdafb74f9 Merge branch 'feature/concurrency' into feature/walletIndex 2017-01-30 15:05:05 -05:00
Patrick Nagurny
26108753db got it working 2017-01-26 18:09:36 -05:00
Chris Kleeschulte
553312947f Added mempool stuff. 2017-01-26 14:57:47 -05:00
Chris Kleeschulte
7662bf1bf5 Adjusted Address index. 2017-01-24 15:56:23 -05:00
Chris Kleeschulte
d4783dabde Added rudimentry mempool. 2017-01-24 14:47:19 -05:00
Patrick Nagurny
3c27f07291 getAddressHistory 2017-01-23 16:59:26 -05:00
Chris Kleeschulte
5a372f268c wip 2017-01-20 17:28:25 -05:00
Chris Kleeschulte
523c3ab852 wip 2017-01-20 11:27:59 -05:00
Patrick Nagurny
efa8480651 get address index to work 2017-01-19 16:11:04 -05:00
Chris Kleeschulte
f1277c8ad3 Added height into tx index. 2017-01-18 19:11:47 -05:00
Chris Kleeschulte
43dfeffd5e Added blockHandler. 2017-01-18 18:23:17 -05:00
Patrick Nagurny
8ecf6e1c47 modify address index, add timestamp and tx indexes (wip) 2017-01-17 15:44:56 -05:00
Patrick Nagurny
339f56157f restore db and address services 2017-01-10 16:51:32 -05:00
Braydon Fuller
7e70bbfa7d bitcoind: bitcoind service using rpc and zmq with address index 2016-04-08 11:59:26 -04:00
Jan Pochyla
b55ecf3044 clamp tx pagination to 0 2016-04-01 18:11:49 +02:00
Braydon Fuller
462e4e3cdd Merge pull request #407 from bitpay/opt/multiple-address-history
Opt/multiple address history
2016-02-11 12:15:15 -05:00
Matias Alejo Garcia
e36cdb717a rm empty keys 2016-02-11 10:42:30 -05:00
Matias Alejo Garcia
1a68ca4fae add tests to _updateAddressIndex 2016-02-10 15:38:02 -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
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
Braydon Fuller
6e8f3ee917 Add regtest from bitcore-lib 2016-02-03 18:29:33 -05:00
Braydon Fuller
f473ddeddd Lower and include new concurrency limits 2016-02-03 12:28:32 -05:00
Braydon Fuller
93e5dbfc34 Address Service: Limit the number of simultaneous requests 2016-02-02 13:27:45 -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
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
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