Commit Graph

75 Commits

Author SHA1 Message Date
tenthirtyone
2ccaf2fce0 Reliably update inputs. Self-healing. Audit Mongo blockheights 2017-08-24 14:28:21 -04:00
tenthirtyone
a3941f75ef Update inputs 2017-08-23 23:25:36 -04:00
tenthirtyone
c560ae3cff fix bestHeight bug 2017-08-23 11:17:49 -04:00
tenthirtyone
52ebe7dde0 bugfix, return array instead of object 2017-08-22 14:10:19 -04:00
tenthirtyone
d86cdd3678 Fix /txs default return to return the properly transformed response 2017-08-22 10:34:55 -04:00
tenthirtyone
067592df50 helmet and static expires header 2017-08-22 01:44:51 -04:00
tenthirtyone
a9493190c2 fix max tx 2017-08-22 01:23:12 -04:00
tenthirtyone
479d55de4a check for findOne null 2017-08-22 01:17:44 -04:00
tenthirtyone
c2c51e709a more cleaning up 2017-08-22 00:29:10 -04:00
tenthirtyone
e5ad52f55d fixed search by addr checking for address. Eventually move these to middleware 2017-08-21 22:57:43 -04:00
tenthirtyone
98164e4447 paging added back. Going over max config limit will default to config limit and still support paging. 2017-08-21 22:53:04 -04:00
tenthirtyone
cae4a45572 Massive debug/dev code cleanup. Most db logic moved to models. 2017-08-21 22:38:20 -04:00
tenthirtyone
050f45015a cleaned up tx db. Moved logic to models. API next 2017-08-21 21:55:09 -04:00
tenthirtyone
efe19444d5 getTxById added to model 2017-08-21 21:08:41 -04:00
tenthirtyone
801fbf62e8 Change FE to relative request paths. 2017-08-21 14:01:08 -04:00
tenthirtyone
37744ec85a mongo fixed up 2017-08-19 21:03:54 -04:00
tenthirtyone
968ab3c103 merge mongo changes 2017-08-19 20:59:37 -04:00
tenthirtyone
46842c9cc5 tx by address wired up 2017-08-19 04:07:09 -04:00
tenthirtyone
697388f1ce pre cleanup. Running entirely on mongo. 2017-08-19 03:15:17 -04:00
tenthirtyone
14cb4e3332 clean up console log and fix return statements 2017-08-18 14:19:10 -04:00
tenthirtyone
8231ed6a1e clean up console log and fix return statements 2017-08-18 14:17:15 -04:00
tenthirtyone
805e5ec0c3 top n txs setup 2017-08-17 17:49:54 -04:00
tenthirtyone
9b7336b066 New models and parser up 2017-08-17 17:44:47 -04:00
tenthirtyone
d2f68fefe9 need new mongo models from another branch 2017-08-17 17:41:07 -04:00
tenthirtyone
898e373b77 Add util to other routes for input validation. 2017-08-17 16:28:30 -04:00
Alex
5d91e48afa Merge branch 'next-merge' into feature/txEndpointValidation 2017-08-17 15:19:50 -04:00
tenthirtyone
d148b5ec77 updated readme instructions 2017-08-17 15:17:23 -04:00
tenthirtyone
4b6482e0ad add scriptsigs to txs for circle-plus info on tx lists 2017-08-17 14:37:08 -04:00
tenthirtyone
5a89cf17d2 All routes replaced. Stable but no tx inputs working. 2017-08-17 11:25:58 -04:00
tenthirtyone
31eecc5afe reduced block model and parsing. 2017-08-17 00:44:50 -04:00
tenthirtyone
8d733df278 Tx Parsing and updating input values 2017-08-17 00:26:32 -04:00
tenthirtyone
a5d74393d1 tx size, tx parser, mongo replies for tx by hash 2017-08-16 23:07:06 -04:00
tenthirtyone
1b0c1b1250 Bringing back other parsers 2017-08-16 22:49:13 -04:00
tenthirtyone
3e7f263e18 bestBlockHeight set by node now. Less cb Hell. 2017-08-16 21:56:56 -04:00
tenthirtyone
1cb0a6b385 indexes and experimenting with mem db 2017-08-16 21:23:29 -04:00
Rob Riddle
1218726ffc This adds some basic regex validation on query parameters to harden against attacks and reduce time to error. Address validation could likely be improved beyond just regex, but this will do for now 2017-08-16 16:31:57 -04:00
tenthirtyone
2ac70bc9a2 Fixed Bcoin error returned as data, fixed dead /txs endpoint missing error, added ttl to bcoin requests but large addrs still take too long 2017-08-16 16:30:33 -04:00
tenthirtyone
c47f58f8e8 Clean up eslint complaints 2017-08-16 14:13:18 -04:00
tenthirtyone
e5b608809b Fix Coinbase in blocks and address. Remove console log from compiled js (removed from temp previousl) 2017-08-16 12:49:37 -04:00
tenthirtyone
515884bf63 Fix isCoinBase typo and add comments 2017-08-16 12:39:12 -04:00
tenthirtyone
958fc79204 Fix return val in transactions.js for bestBlockHeight 2017-08-16 10:40:50 -04:00
tenthirtyone
ad39b6337c comment updates 2017-08-16 02:02:19 -04:00
tenthirtyone
06b0e108d5 socket reworking to reduce coupling 2017-08-16 01:47:30 -04:00
tenthirtyone
2f4533e057 getBestHeight added to db api 2017-08-16 01:13:30 -04:00
tenthirtyone
3b8b900405 More cleanup, naming fixes and comments 2017-08-16 01:08:05 -04:00
tenthirtyone
e3b8413eee Moved db configs to config file. Dropped time from log files. Simple commenting 2017-08-16 00:52:11 -04:00
tenthirtyone
2eac46fdb5 transactions added to db api 2017-08-16 00:17:45 -04:00
tenthirtyone
1d029fcf7f getBlocks completely in db api 2017-08-16 00:00:52 -04:00
tenthirtyone
b0f95d93ab All API but tx & socket cleaned up, blocks db api done 2017-08-15 23:14:24 -04:00
tenthirtyone
ecee54c10b Address API cleaned up. Unnecessary db calls removed 2017-08-15 21:55:48 -04:00