Commit Graph

20024 Commits

Author SHA1 Message Date
Jude Nelson
bdcb0e8181 chore: address PR feedback -- make stackerdb events consumptive, and only forward stackerdb events to stackerdb-subscribed event observers 2023-08-29 10:43:05 -04:00
Jude Nelson
a45cfdf844 chore: run stackerdb tests in CI 2023-08-29 10:42:45 -04:00
Jude Nelson
8d9ef90468 fix: API sync with unit tests 2023-08-25 15:29:11 -04:00
Jude Nelson
9c4e540250 fix: the stackerdb event observer now sends chunks over the event observer, not just chunk metadata 2023-08-25 14:40:32 -04:00
Jude Nelson
1f3bd2e7b4 fix: use Bitcoin 25 for all CI tests 2023-08-23 13:40:01 -04:00
Jude Nelson
54d66d847b chore: cargo fmt 2023-08-22 23:58:43 -04:00
Jude Nelson
739c085b0d fix: API sync with unit tests 2023-08-22 23:54:36 -04:00
Jude Nelson
7b7b032371 Merge branch 'feat/stackerdb-rpc' into feat/stackerdb-event-observer 2023-08-22 23:21:50 -04:00
Jude Nelson
2a3ce4ff42 fix: use Bitcoin 0.25 for integration tests 2023-08-22 21:36:45 -04:00
Jude Nelson
765dc617a7 fix: use Bitcoin 0.25 for integration tests 2023-08-22 21:18:08 -04:00
Jude Nelson
1276dcbb6e docs: describe /stackerdb_chunks endpoint for event observer 2023-08-22 17:59:15 -04:00
Jude Nelson
f890c6ec10 feat: integration test for stackerdb event observer 2023-08-22 17:46:24 -04:00
Jude Nelson
13884dca50 feat: add event handler for stackerdb events to test observer 2023-08-22 17:46:10 -04:00
Jude Nelson
d5ea39eeb0 feat: push stackerdb events to observers with the "stackerdb" or "any" concern 2023-08-22 17:45:32 -04:00
Jude Nelson
6640032ef0 feat: "stackerdb" event key 2023-08-22 17:45:19 -04:00
Jude Nelson
57919d985b feat: StackerDBEventObserver trait 2023-08-22 17:43:05 -04:00
Jude Nelson
395effe57c feat: POST /v2/stackerdb/... will now report the chunk to the HTTP server to it'll get captured in NetworkResult (thereby exposing it to the Relayer thread) 2023-08-22 17:42:29 -04:00
Jude Nelson
6a87551b25 feat: unify MemPoolEventDispatcher and StackerDBEventDispatcher behind a composite trait RelayEventDispatcher, and provide explicit upcasts to each constituent trait to preserve compatibility. Use this to implement relay logic for reporting stackerdb events from network results. 2023-08-22 17:41:20 -04:00
Jude Nelson
d18ef3a331 feat: track uploaded stackerdb chunks in the network result 2023-08-22 17:40:59 -04:00
Jude Nelson
a79124847c chore: fix failing test case 2023-08-21 17:27:00 -04:00
Jude Nelson
11a6f03477 fix: include stackerdb in RPC request paths 2023-08-18 16:13:09 -04:00
Jude Nelson
5b14fce2dd chore: cargo fmt and fix compile error 2023-08-18 15:36:54 -04:00
Jude Nelson
ee7cc503e0 chore: address all PR feedback, and address a bug in which we accidentally expected a SIP-003 length prefix in chunks that we parsed 2023-08-18 13:57:15 -04:00
Jude Nelson
b42d3127bd chore: remove ContractId and use QualifiedContractIdentifier pervasively 2023-08-15 22:38:26 -04:00
Jude Nelson
7547a6060f chore: remove dead files 2023-08-15 22:38:05 -04:00
Jude Nelson
bf60466773 chore: use libstackerdb instead of stackslib for stackerdb RPC 2023-08-15 21:29:19 -04:00
Jude Nelson
4eab26b7a5 chore: move stackerdb RPC structs into their own crate 2023-08-15 21:28:52 -04:00
Jude Nelson
c85b0d7265 chore: depend on libstackerdb 2023-08-15 21:28:36 -04:00
Jude Nelson
79b7092dec chore: add libstackerdb to cargo.lock and cargo.toml 2023-08-15 21:06:28 -04:00
Jude Nelson
08d9adfea7 feat: factor out StackerDB client logic into its own crate 2023-08-15 20:44:32 -04:00
Jude Nelson
4c10f7d2ca fix: stacker_dbs is optional 2023-08-15 17:22:30 -04:00
Jude Nelson
9b85505928 fix: compile-time merge errors 2023-08-15 16:57:23 -04:00
Jude Nelson
39ac9c60e9 Merge branch 'feat/stackerdb-config' into feat/stackerdb-rpc 2023-08-15 16:53:50 -04:00
Jude Nelson
022c60c34d feat: test for load/store chunks in stackerdb 2023-08-15 16:50:42 -04:00
Jude Nelson
2a6db51b09 fix: API sync 2023-08-15 16:50:15 -04:00
Jude Nelson
c85083b0d1 feat: load up stackerdbs from config file when instantiating peerdb and peernetwork 2023-08-15 16:49:57 -04:00
Jude Nelson
62e04362d4 feat: configurable stackerdbs 2023-08-15 16:49:46 -04:00
Jude Nelson
ed19283716 fix: use bitcoind v0.25 descriptors for importing an address 2023-08-15 16:49:27 -04:00
Jude Nelson
09e955d4f3 fix: don't enforce write rate-limiting in the DB 2023-08-15 16:49:07 -04:00
Jude Nelson
a28812b505 fix: return stacker DBs as a string 2023-08-15 16:48:53 -04:00
Jude Nelson
49fb7a99ee fix: API sync 2023-08-15 16:48:18 -04:00
Jude Nelson
977fef2897 fix: API sync 2023-08-15 16:48:06 -04:00
Jude Nelson
6b795f1125 fix: send chunks as "text" (no SIP-003 length prefix) 2023-08-15 16:47:47 -04:00
Jude Nelson
bb67412c48 chore: API sync 2023-08-15 16:47:37 -04:00
Jude Nelson
45e840d98f feat: post-stackerdb helper 2023-08-15 16:47:16 -04:00
Jude Nelson
71aaa87cf9 Merge branch 'feat/stackerdb-sync' into feat/stackerdb-config 2023-08-15 12:36:23 -04:00
Jude Nelson
008c352cc4 chore: cargo fmt 2023-08-15 12:34:11 -04:00
Jude Nelson
8cb3e0a370 chore: address PR feedback 2023-08-15 12:31:13 -04:00
Jude Nelson
837c402022 chore: expose stream module 2023-08-15 00:51:16 -04:00
Jude Nelson
8c21dd2348 chore: if pushing a chunk leads us to discover newer chunks, then proceed directly to chunk-get 2023-08-15 00:50:50 -04:00