Commit Graph

19958 Commits

Author SHA1 Message Date
Jude Nelson
53a2fe7233 feat: transport-layer implementation for getting chunks, storing chunks, and listing chunk metadata in a stackerdb 2023-08-15 00:47:03 -04:00
Jude Nelson
04f7470a96 chore: update copyright 2023-08-15 00:46:49 -04:00
Jude Nelson
dd3545d694 chore: update copyright 2023-08-15 00:46:38 -04:00
Jude Nelson
b4876e8127 chore: update copyright 2023-08-15 00:46:13 -04:00
Jude Nelson
78e618af5d chore: update copyright 2023-08-15 00:46:00 -04:00
Jude Nelson
4e66c42370 chore: update copyright 2023-08-15 00:45:48 -04:00
Jude Nelson
8aa654cda6 chore: update copyright 2023-08-15 00:45:36 -04:00
Jude Nelson
b024638732 chore: update copyright 2023-08-15 00:45:23 -04:00
Jude Nelson
626587a9cf chore: refactor stream move 2023-08-15 00:45:07 -04:00
Jude Nelson
f36cc8d2e6 refactor: move streaming logic out of StacksChainState and into net, where it belongs 2023-08-15 00:44:35 -04:00
Jude Nelson
1e9fad83de Merge branch 'feat/stackerdb-sync' into feat/stackerdb-config 2023-08-11 14:44:26 -04:00
Jude Nelson
b15c76c93b feat: StackerDBConfig structs are now generated from specially-crafted smart contracts (and tested to do so) 2023-08-11 14:40:55 -04:00
Jude Nelson
fe1f85604c chore: update tests so config struct contain signer slots 2023-08-11 14:40:41 -04:00
Jude Nelson
f2f3c4ad0d feat: new config test 2023-08-11 14:40:24 -04:00
Jude Nelson
3ffca789a4 feat: test for stackerdb reconfigure 2023-08-11 14:40:01 -04:00
Jude Nelson
b6c42475c2 feat: reconnect / keep connections to connected_replicas across multiple passes 2023-08-11 14:39:34 -04:00
Jude Nelson
22bcf100fa feat: StackerDBConfig now includes the list of signers, and the PeerNetwork will wake up a state machine if it receives pushed data 2023-08-11 14:39:03 -04:00
Jude Nelson
6f29fee038 feat: add the ability to reconfigure a stackerdb 2023-08-11 14:38:45 -04:00
Jude Nelson
5e1fe206bc chore: new InvalidStackerDBContract(..) error variant, and a From<clarity_error> conversion for Error 2023-08-11 14:38:12 -04:00
Jude Nelson
3233b5a1ee feat: add a checked eval_read_only() function to StacksChainState 2023-08-11 14:37:53 -04:00
Jude Nelson
d8652d98f7 fix: #[ignore] long-running chunk tests for now (they should run sequentially) 2023-08-11 13:29:23 -04:00
Jude Nelson
ce0b3018c1 fix: remove commented code and fix port clobbering 2023-08-11 00:43:45 -04:00
Jude Nelson
b4c5228f1f chore: fix broken test 2023-08-10 22:57:58 -04:00
Jude Nelson
9f4ded3885 fix: fix broken unit test 2023-08-10 12:57:54 -04:00
Jude Nelson
48121adb61 chore: API sync 2023-08-10 02:07:01 -04:00
Jude Nelson
b22b8883fe chore: test push as well as get-driven sync 2023-08-10 02:06:46 -04:00
Jude Nelson
ad9c491239 chore: API sync 2023-08-10 02:06:29 -04:00
Jude Nelson
85749afac0 chore: API sync 2023-08-10 02:06:16 -04:00
Jude Nelson
5970edf318 feat: push chunks as well as get chunks, and make the sync code use the new p2p APIs 2023-08-10 02:05:43 -04:00
Jude Nelson
7b220f412e feat: handle pushed chunks and reply with an updated chunk inv 2023-08-10 02:05:12 -04:00
Jude Nelson
8a5b887982 chore: remove dead code 2023-08-10 02:04:57 -04:00
Jude Nelson
edaa9a1046 feat: code to store pushed chunks 2023-08-10 02:04:42 -04:00
Jude Nelson
9688cb851a refactor: more getters and clearer function names 2023-08-10 02:04:26 -04:00
Jude Nelson
c220041c13 chore: API sync 2023-08-10 02:04:12 -04:00
Jude Nelson
e1f0b430d4 feat: a few extra comms helpers 2023-08-10 02:03:54 -04:00
Jude Nelson
84a112183a feat: struct for a pushed chunk 2023-08-10 02:03:32 -04:00
Jude Nelson
5074cd58e6 chore: refactoring from new chat() arguments 2023-08-10 02:03:17 -04:00
Jude Nelson
5064bb06ad feat: an open() function for an existing StackerDBs 2023-08-10 02:02:54 -04:00
Jude Nelson
6421fd0215 chore: fault injection for disabling chunk-gets 2023-08-10 02:02:40 -04:00
Jude Nelson
c2651876f3 chore: codec for a pushed chunk 2023-08-10 02:02:25 -04:00
Jude Nelson
9ca5ee0546 refactor: reduce the number of arguments to chat() 2023-08-10 02:02:01 -04:00
Jude Nelson
58e6a6e1ad Merge branch 'feat/stackerdb-chunk-db' into feat/stackerdb-sync 2023-08-10 02:01:35 -04:00
Jude Nelson
aea9ff7ac3 Merge branch 'feat/stackerdb-discovery' into feat/stackerdb-chunk-db 2023-08-04 00:54:26 -04:00
Jude Nelson
cdcf5b6021 refactor: struct StackerDB --> struct StackerDBSet 2023-08-04 00:47:41 -04:00
Jude Nelson
8c8de18954 chore: sync API with latest changes 2023-08-04 00:21:35 -04:00
Jude Nelson
2eabe06e0e chore: sync API with refactor 2023-08-04 00:21:15 -04:00
Jude Nelson
68ef6e0198 chore: update docs and use slot instead of chunk 2023-08-04 00:21:02 -04:00
Jude Nelson
33554c5fd5 fix: remove rc_consensus_hash and remove per-DB tables. Instead, keep all chunks in one table and bind them to a database name entry 2023-08-04 00:20:35 -04:00
Jude Nelson
998936cbf9 refactor: address code review feedback 2023-08-04 00:20:02 -04:00
Jude Nelson
d340679eb0 refactor: use slot instead of chunk; add new error types to capture various DB failures; drop rc_consensus_hash 2023-08-04 00:19:19 -04:00