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 |
|
Jude Nelson
|
f2e3ca4fe3
|
chore: use slot instead of chunk; drop rc_consensus_hash
|
2023-08-04 00:19:02 -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
|
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 |
|
Jude Nelson
|
13f893888c
|
feat: Error::StepTimeout captures the case when a state-machine spends too long in one state
|
2023-07-28 22:02:32 -04:00 |
|
Jude Nelson
|
260ca3176b
|
fix: one peer is one slot, so tie stacker DB state to a slot via a foreign key relationship. Also, when searching for a peer's slots, only return the single slot it occupies. This affects maintenance logic for associating and dissociating stacker DBs with peers
|
2023-07-28 22:01:47 -04:00 |
|
Jude Nelson
|
9a7aeaa4ac
|
feat: add a max neighbor age for neighbors reported via GetNeighbors
|
2023-07-28 22:01:26 -04:00 |
|