Commit Graph

8826 Commits

Author SHA1 Message Date
Jude Nelson
549e99c1e2 disable useless compiler warnings for this module (temporarily) 2019-02-05 17:55:44 -05:00
Jude Nelson
fd611cc5de remove util error enum -- it's no longer needed 2019-02-05 17:55:20 -05:00
Jude Nelson
ef3fa006fe de-lint 2019-02-05 17:55:13 -05:00
Jude Nelson
c9d9080371 de-lint; bugfix on argv count 2019-02-05 17:55:04 -05:00
Jude Nelson
155c99e967 most functionality here got moved to src/burnchains/burnchain.rs 2019-02-05 17:54:45 -05:00
Jude Nelson
7e2e6a2873 use a private sturct for storing parsed data 2019-02-05 17:54:34 -05:00
Jude Nelson
7542086522 de-lint 2019-02-05 17:54:25 -05:00
Jude Nelson
2e1a1ab051 use a private struct for parsed data; WIP check() implementation 2019-02-05 17:54:09 -05:00
Jude Nelson
5e9ac4e6aa use a private struct for storing parsed data 2019-02-05 17:53:57 -05:00
Jude Nelson
e30bc953e5 make BlockSnapshot a first-class struct; move consensus hash calculation to this module 2019-02-05 17:53:36 -05:00
Jude Nelson
ccf47b21ac de-lint 2019-02-05 17:53:27 -05:00
Jude Nelson
12bc934611 move code that doesn't directly call a SQL query out of this module 2019-02-05 17:53:11 -05:00
Jude Nelson
9703258032 de-lint; add Burnchain struct 2019-02-05 17:52:59 -05:00
Jude Nelson
a2104e97e5 update indexer API to de-lint 2019-02-05 17:52:47 -05:00
Jude Nelson
6e1daf31d9 de-lint; allow restarting downloading headers from where we left off 2019-02-05 17:52:32 -05:00
Jude Nelson
034c194077 de-lint; remove dead code 2019-02-05 17:52:22 -05:00
Jude Nelson
d3c84c4ffd de-lint 2019-02-05 17:52:14 -05:00
Jude Nelson
a82e2101ea de-lint 2019-02-05 17:52:07 -05:00
Jude Nelson
062f1bdf13 de-lint; fix a few bugs Aaron noticed 2019-02-05 17:51:54 -05:00
Jude Nelson
f2dc7698a1 de-lint 2019-02-05 17:51:38 -05:00
Jude Nelson
d7c8b5f37b de-lint 2019-02-05 17:51:29 -05:00
Jude Nelson
b826a32796 de-lint 2019-02-05 17:51:19 -05:00
Jude Nelson
2fbceefd85 remove the pipeline code -- it ended up not getting used 2019-02-05 17:51:03 -05:00
Jude Nelson
5a78fc96b1 move all burnchain-processing code into the overarching Burnchain struct. Removes the need for hilariously-long associated type hints 2019-02-05 17:50:19 -05:00
Jude Nelson
14df1ee46a contributors document 2019-02-03 23:18:43 -05:00
Jude Nelson
c124dd7222 log timestamps 2019-02-02 23:55:39 -05:00
Jude Nelson
6d65cea516 add a way to read a block header (for debugging) 2019-02-02 23:55:26 -05:00
Jude Nelson
54e94ad436 prototype working main loop 2019-02-02 23:55:14 -05:00
Jude Nelson
e4698e3a29 no more log::init; clean up errors 2019-02-02 23:55:00 -05:00
Jude Nelson
f485ef221c remove unused errors 2019-02-02 23:54:47 -05:00
Jude Nelson
c1cc10dfc3 add some more unit tests for generating consenus hashes 2019-02-02 23:54:25 -05:00
Jude Nelson
e21b000e13 update error types 2019-02-02 23:54:11 -05:00
Jude Nelson
d6c4f594e5 indexer trait requires get_first_block_height() 2019-02-02 23:53:56 -05:00
Jude Nelson
bbf3ca131a allow writing to any location in the header file 2019-02-02 23:53:41 -05:00
Jude Nelson
19d5bd60cc rust-ify 2019-02-02 23:53:27 -05:00
Jude Nelson
bc4322bf2c add send_getdata() 2019-02-02 23:53:16 -05:00
Jude Nelson
df3c4b9e5b remove unused errors 2019-02-02 23:53:03 -05:00
Jude Nelson
49f7a11397 add a way to write a config file; make it so we don't always have to re-establish communications on peer_communicate(); fix up reorg detection logic 2019-02-02 23:52:28 -05:00
Jude Nelson
2e0826c7e0 use getdata, not getblocks 2019-02-02 23:52:03 -05:00
Jude Nelson
700e0043ea no more log::init 2019-02-02 23:51:52 -05:00
Jude Nelson
b4daa49bea no more log::init 2019-02-02 23:51:11 -05:00
Jude Nelson
1c40f204d8 use associated types instead of type parameters to encode the type of a burnchain indexer 2019-01-30 14:12:06 -05:00
Jude Nelson
3de125e8b8 remove log package; use our own log macros 2019-01-30 11:07:59 -05:00
Jude Nelson
7752d27d64 this module is defunct and will not be used 2019-01-29 18:47:17 -05:00
Jude Nelson
f47f9ab95a first stab at a "main loop" for indexing a burn chain 2019-01-29 18:47:04 -05:00
Jude Nelson
12f9b43480 thread join failure doesn't take an error cause 2019-01-29 18:46:50 -05:00
Jude Nelson
edbfdba306 have consensus hash commit to total burn so far 2019-01-29 18:46:37 -05:00
Jude Nelson
1313ae5217 more error types 2019-01-29 18:46:21 -05:00
Jude Nelson
566d855aad more error types 2019-01-29 18:46:10 -05:00
Jude Nelson
3a35edfeda more error types 2019-01-29 18:45:59 -05:00