Commit Graph

83 Commits

Author SHA1 Message Date
tenthirtyone
2146ff290b index block on tx model 2017-08-28 12:49:46 -04:00
tenthirtyone
ee0d5595b3 move models into lib 2017-08-28 00:38:48 -04:00
tenthirtyone
1a18a369c1 Save logic moved to models. Parsers removed 2017-08-27 23:44:08 -04:00
tenthirtyone
b836390b22 remove sockets 2017-08-27 22:53:39 -04:00
tenthirtyone
56078e2487 move cors to middleware 2017-08-27 22:38:40 -04:00
tenthirtyone
5f7e2b7613 removed old audit code 2017-08-27 22:30:41 -04:00
tenthirtyone
4ba24bba25 input sanitization moved to middleware 2017-08-27 21:58:04 -04:00
tenthirtyone
cbcd42c096 remove tx.size until bcoin pr is merged 2017-08-27 21:53:42 -04:00
tenthirtyone
df2beddf16 Better input handling. Huge increase in performance and accuracy. 2017-08-25 17:27:15 -04:00
tenthirtyone
afc063fb97 sync & async saving. Bleh 2017-08-25 10:47:03 -04:00
tenthirtyone
12cb8a0c29 Graceful Shutdown for mongodb 2017-08-24 15:26:57 -04:00
tenthirtyone
333eec3dd8 Reset Bcoin chain if blocks are missing from mongo. 2017-08-24 14:42:50 -04:00
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
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
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
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