Commit Graph

19958 Commits

Author SHA1 Message Date
Jude Nelson
f2e3ca4fe3 chore: use slot instead of chunk; drop rc_consensus_hash 2023-08-04 00:19:02 -04:00
Jude Nelson
0192fd1629 Merge branch 'develop' into feat/stackerdb-discovery 2023-08-04 00:18:19 -04:00
Sergey Shandar
7afb43086d Move blockstack-core into a separate folder (develop branch) (#3814)
* move `src` to `blockstack-core/`

* fix paths

* stackers.db

* Remove src/net

* Renaming to `stackslib`

* Revert Cargo.lock changes.

* stackslib
2023-08-03 16:08:32 -07:00
Jude Nelson
e5c8498593 Merge branch 'develop' into feat/stackerdb-discovery 2023-08-03 19:54:51 +00:00
Aaron Blankstein
2e756fe500 Merge pull request #3780 from stacks-network/test/sanitize-fuzzing
Fuzz Testing: Clarity value sanitization and serialization
2023-08-03 14:41:08 -05:00
Aaron Blankstein
5758e9b48b chore: cleanup Cargo.toml, add copyright to rs file 2023-08-03 13:34:03 -05:00
Aaron Blankstein
2854b752bd test: add independent fuzz testing member and fuzz_sanitize 2023-08-03 13:34:03 -05:00
Brice Dobry
0a56772464 Merge pull request #3774 from stacks-network/fix/mixup-config-parsing
Fix: Parsing of config mixes connect_timeout and handshake_timeout
2023-08-03 14:08:35 -04:00
Jude Nelson
bbb8e4853e fix: fix failing tests due to API change in try_insert_peer() 2023-08-03 14:06:03 -04:00
Jude Nelson
b3d27f5c02 fix: fix failing test due to new return value from try_insert_peer 2023-08-03 13:14:32 -04:00
Jude Nelson
15a838dbf6 Merge branch 'feat/stackerdb-discovery' into feat/stackerdb-chunk-db 2023-08-03 11:52:44 -04:00
Jude Nelson
2fe8cfe9bb docs: document all unit tests in src/net/db.rs 2023-08-03 11:51:23 -04:00
Jude Nelson
1f6b54f19d chore: cargo fmt 2023-08-03 11:38:19 -04:00
Jude Nelson
c879ff1b68 fix: neighbors are equal iff they have the same address and public key 2023-08-03 11:36:40 -04:00
Jude Nelson
b820596e9a Merge branch 'develop' into fix/mixup-config-parsing 2023-08-03 15:04:36 +00:00
Jude Nelson
faa8583939 Merge branch 'feat/stackerdb-discovery' into feat/stackerdb-chunk-db 2023-08-03 10:48:47 -04:00
Jude Nelson
750442f554 fix: correctly report network convergence data 2023-08-03 00:10:25 -04:00
Jude Nelson
4ba2520265 refactor: deduplicate code, and be more careful about what neighbor data we save from non-outbound walks 2023-08-03 00:09:57 -04:00
Jude Nelson
4b63b18398 refactor: Neighbor::load_by_address() 2023-08-03 00:09:24 -04:00
Jude Nelson
b8b1bcfdff refactor: separate out walk construction logic, and make sure we stop a slow walk that's still ongoing 2023-08-03 00:08:30 -04:00
Jude Nelson
4d000fafd3 fix: remove dead check, and remove needless trait impl shuttle 2023-08-03 00:08:07 -04:00
Jude Nelson
93b019099b fix: is_allowed() and is_denied() for Neighbor should be mutually exclusive 2023-08-03 00:07:42 -04:00
Jude Nelson
0a612eaf8e chore: address review feedback (remove needless lifetimes, double-check how we use peer slots) 2023-08-03 00:07:23 -04:00
Jude Nelson
e49395f37c refactor: rename Neighbor::from_handshake() to Neighbor::load_and_update() 2023-08-03 00:06:45 -04:00
Jude Nelson
2515a716ba chore: debug convergence in tests 2023-08-01 09:45:56 -04:00
Jude Nelson
21ed11ed9a chore: API sync 2023-08-01 09:45:49 -04:00
Jude Nelson
e269eaab39 chore: API sync 2023-08-01 09:45:40 -04:00
Jude Nelson
d9e8bc5c73 refactor: parameterize NeighborWalk by its comms type, and give it a member for doing comms with neighbors 2023-08-01 09:45:11 -04:00
Jude Nelson
4ceef5caa9 refactor: fully extract and implement peer network comms into its own struct, which is now going to be a member of NeighborWalk 2023-08-01 09:44:48 -04:00
Jude Nelson
68fc388361 Merge branch 'feat/stackerdb-discovery' into feat/stackerdb-chunk-db 2023-07-31 15:53:24 -04:00
Jude Nelson
3d0c6d8e87 chore: hide PeerNetwork data behind an API (so we can capture it in a trait later) 2023-07-31 15:49:16 -04:00
Jude Nelson
49c21aaec8 refactor: move all PeerDB I/O out of NeighborWalk 2023-07-31 15:49:05 -04:00
Jude Nelson
ee59d9236f chore: add a comment 2023-07-31 15:48:55 -04:00
Jude Nelson
b8d2d21806 chore: API sync 2023-07-31 15:48:47 -04:00
Jude Nelson
56ed1d4b6c chore: clean up imports and API sync 2023-07-31 15:48:36 -04:00
Jude Nelson
862e1774b6 chore: API sync 2023-07-31 15:48:25 -04:00
Jude Nelson
82123c4447 refactor: capture all PeerDB I/O functionality in a trait implementation, which a NeighborWalk consumes on instantiation (thereby separationg all DB logic from the walk logic) 2023-07-31 15:47:35 -04:00
Jude Nelson
00f812af72 fix: bug in test setup leads to failures 2023-07-29 22:06:29 -04:00
Jude Nelson
95e93876e8 fix: bug in test -- stackerdb-aware nodes fall back to HandshakeAccept of the remote peer has a different view of the reward cycle consensus hash 2023-07-28 23:37:18 -04:00
Jude Nelson
1576d15a5e Merge branch 'develop' into feat/stackerdb-discovery 2023-07-29 03:12:45 +00:00
Jude Nelson
10dc24de0d Merge pull request #3551 from stacks-network/feat/stackerdb-messages
Feat/stackerdb messages
2023-07-29 03:12:21 +00:00
Jude Nelson
8f031f3495 fix: test_debug! to avoid gratuitous debug output 2023-07-28 22:40:26 -04:00
Jude Nelson
70ebe22bc9 Merge branch 'feat/stackerdb-messages' into feat/stackerdb-discovery 2023-07-28 22:09:33 -04:00
Jude Nelson
5c84ee148c Merge branch 'develop' into feat/stackerdb-messages 2023-07-28 22:06:30 -04:00
Jude Nelson
adf01803e7 chore: add changelog entry 2023-07-28 22:06:11 -04:00
Jude Nelson
cab7e87440 Merge branch 'develop' into feat/stackerdb-discovery 2023-07-28 22:04:29 -04:00
Jude Nelson
50ef13279b fix: /v2/neighbors/ sample field now reports the same information that would be returned to a GetNeighbors request 2023-07-28 22:03:52 -04:00
Jude Nelson
21f58f2f9b chore: formatting 2023-07-28 22:03:43 -04:00
Jude Nelson
a9f828600d chore: expose PeerNetwork state through getters instead of direct access (WIP) 2023-07-28 22:03:14 -04:00
Jude Nelson
79e460df50 refactor: src/net/neighbors.rs is now src/net/neighbors/ 2023-07-28 22:02:56 -04:00