Commit Graph

365 Commits

Author SHA1 Message Date
Chris Kleeschulte
b63a2208fc Fixes to allow bcoin to work with Transaction controller. 2017-08-10 18:56:13 -04:00
Chris Kleeschulte
5a49f5c6c2 Added fixes for blocks route. 2017-08-09 19:41:50 -04:00
Chris Kleeschulte
c61490ed62 WIP changes for next version 2017-08-09 18:11:03 -04:00
Braydon Fuller
5eb32cf64c test: address trim transform options 2016-07-20 10:54:28 -04:00
Braydon Fuller
67fc186293 test: address txs trim results 2016-07-20 10:38:43 -04:00
Braydon Fuller
38e061e0c5 address: include options to trim transaction results 2016-07-19 20:33:31 -04:00
Braydon Fuller
57e65010f1 index: add option to disable rate limiter entirely
for the case that insight-api is used in an internal network
where rate limiting isn't necessary
2016-06-07 11:02:58 -04:00
Braydon Fuller
b9c909ad40 index: configurable ratelimiter options 2016-06-01 15:02:11 -04:00
Braydon Fuller
77211dbaf7 index: respond 204 to OPTIONS requests 2016-05-31 12:31:06 -04:00
Braydon Fuller
667a38053b block: check block argument and fix caching
Checks that the argument sent to the endpoint for /block/ and /rawblock/ is
a 64 character hexadecimal string (blockHash), otherwise will return 404.

Uses a long cache header for for the /rawblock/ endpoint since the result will not
change, and a short cache header for the /block/ endpoint since this data references
other blocks in the chain that can change.
2016-05-26 11:21:36 -04:00
Braydon Fuller
2448ad1779 index: log remote connecting ip address 2016-05-25 17:16:11 -04:00
Braydon Fuller
72fe25aff9 Fix bug with var self = this; 2016-05-25 16:03:36 -04:00
Braydon Fuller
61f0c3063a bitcoind: fix error handling bug 2016-05-16 18:32:08 -04:00
Braydon Fuller
11874a1957 blocks: handle out of range height as 404 not found 2016-05-16 18:27:27 -04:00
Braydon Fuller
0465179a93 transaction: switch to use bitcore node getDetailedTransaction 2016-05-13 18:22:28 -04:00
Braydon Fuller
285e3550f5 status: camelCase adjustments for bitcore node 2016-05-11 11:54:29 -04:00
Braydon Fuller
c6bd150bd9 blocks: camelCase adjustments for bitcore node 2016-05-11 11:54:08 -04:00
Braydon Fuller
351c315736 common: improve error logging 2016-05-10 19:26:10 -04:00
Braydon Fuller
ebcc3607c2 ratelimiter: rename every to interval and add tests 2016-05-10 17:40:07 -04:00
Braydon Fuller
98d5314ef2 transactions: switch to use req.param
so that the last argument is the next callback
2016-05-10 16:55:16 -04:00
Braydon Fuller
7973e2398a blocks: switch to use req.param
so that the last argument is the next callback
2016-05-10 16:50:28 -04:00
Braydon Fuller
310dd99086 blocks: rename moreTs -> moreTimestamp for clarity 2016-05-10 16:24:37 -04:00
Braydon Fuller
29e96e83ae address: pass "from" and "to" options 2016-05-10 13:52:01 -04:00
Braydon Fuller
4e54d195b9 blocks: add configurable option for caches 2016-05-09 17:54:57 -04:00
Braydon Fuller
b446f6733c transaction: handle error 2016-05-09 17:54:08 -04:00
Braydon Fuller
c83842eb60 addresses: parseInt from and to 2016-04-22 17:29:26 -04:00
Braydon Fuller
3e40d71c51 addresses: update utxo response format 2016-04-22 14:46:51 -04:00
Braydon Fuller
6e5dbfd22a utils: update estimatefee 2016-04-20 14:07:29 -04:00
Braydon Fuller
e1df171f95 blocks: cache block header info with next block with 6 confirmations 2016-04-20 10:54:10 -04:00
Braydon Fuller
b686c5bea9 blocks: fix null prevhash issue 2016-04-15 15:50:14 -04:00
Braydon Fuller
c68b9e143e test: update transaction tests 2016-04-15 14:56:54 -04:00
Braydon Fuller
13532666c3 test: update block tests 2016-04-15 13:45:58 -04:00
Braydon Fuller
2ff77801b0 test: update address test and test upgrades 2016-04-15 13:14:52 -04:00
Braydon Fuller
d47527e7d0 transaction: update error handling with codes 2016-04-15 11:48:56 -04:00
Braydon Fuller
04b0b39049 transaction: include height in spent info 2016-04-12 15:30:47 -04:00
Braydon Fuller
38bbbc07dc transaction: spent info api updates 2016-04-12 15:01:27 -04:00
Braydon Fuller
7ded22fb2c block: add raw block endpoint 2016-04-11 15:40:55 -04:00
Braydon Fuller
19c5b617d1 block: only cache block summary with height if confirmed >= 6
- update api with changes in bitcore node
- add block event
2016-04-11 10:39:46 -04:00
Braydon Fuller
9d78188f64 index: add not found 2016-04-11 10:33:53 -04:00
Braydon Fuller
491a5cb846 index: start of rate limiter 2016-04-11 10:33:53 -04:00
Braydon Fuller
0957f2301e index: add compression to responses 2016-04-11 10:33:53 -04:00
Braydon Fuller
8280d7a628 index: added response logging 2016-04-11 10:33:53 -04:00
Braydon Fuller
de4a87e5f8 index: update bitcoind tx event handler 2016-04-11 10:33:53 -04:00
Braydon Fuller
b18dc95755 address: update utxos 2016-04-11 10:33:53 -04:00
Braydon Fuller
78870fc56e fixed bug that was removing transactions from the cached block 2016-04-11 10:33:53 -04:00
Braydon Fuller
3c355c30a9 blocks: added lru cache 2016-04-11 10:33:53 -04:00
Braydon Fuller
13efeec84b blocks: fix for getBlockHashesByTimestamp 2016-04-11 10:29:50 -04:00
Braydon Fuller
e4f585ad15 general: updated controllers for new api from bitcoind 2016-04-11 10:28:49 -04:00
Joel Kaartinen
c42b8d9d91 Optimize block list page to not parse all transactions from a block when
the only data that is interesting is number of transactions. Fixes 100%
CPU while building block list.
2016-03-29 12:16:14 +03:00
Braydon Fuller
e790622df6 Fixed bug with sequence number for rbf
See: dfdeaba729 (commitcomment-14937962)
2016-01-28 14:42:16 -05:00