Commit Graph

8837 Commits

Author SHA1 Message Date
Jude Nelson
3dfba809d3 add system fork set version 2019-02-07 15:31:57 -05:00
Jude Nelson
ba06e20f99 implement check routine for user burn supports. In particular, a user burn support does _not_ need to correspond to a specific block to be accepted -- we'll still keep the burns around to measure chain quality 2019-02-07 15:30:28 -05:00
Jude Nelson
735dab927c finish check() routine for leader block commits 2019-02-07 15:30:16 -05:00
Jude Nelson
9ca2ac9817 roll the system fork version into the consensus hash 2019-02-07 15:29:57 -05:00
Jude Nelson
0cb854d272 make FromRow generic for Address 2019-02-07 15:29:37 -05:00
Jude Nelson
61d33a9230 select operations by txid and burn block hash; check that an existing DB has the right starting block height when connecting; add helper methods to be used in checking the validity of burn chain ops 2019-02-07 15:28:42 -05:00
Jude Nelson
71853544cd clarify that burnchain input types will be expanded as we add more support for burn chains 2019-02-07 15:28:12 -05:00
Jude Nelson
af928dca07 not dead yet! 2019-02-07 15:28:00 -05:00
Jude Nelson
8a2d7ce618 replace Bitcoin-specific methods for converting scriptsigs into scriptpubkeys with generic methods for turning tx inputs into address bits 2019-02-07 15:27:14 -05:00
Jude Nelson
058d1e1f14 make fields public; remove unused code 2019-02-07 15:26:44 -05:00
Jude Nelson
9249c1fea3 de-lint; remove dead code 2019-02-05 17:55:59 -05:00
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