Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/stackerdb discovery #3552

Merged
merged 60 commits into from
Aug 11, 2023
Merged

Feat/stackerdb discovery #3552

merged 60 commits into from
Aug 11, 2023

Commits on Feb 5, 2023

  1. Configuration menu
    Copy the full SHA
    24acc9e View commit details
    Browse the repository at this point in the history
  2. feat: expend the peer DB to remember which stacker DBs a neighbor rep…

    …orts as serving, so we can go and fetch state from them later
    jcnelson committed Feb 5, 2023
    Configuration menu
    Copy the full SHA
    11268a4 View commit details
    Browse the repository at this point in the history
  3. chore: expand test framework to make test peers capable of reporting …

    …their stacker DBs to each other
    jcnelson committed Feb 5, 2023
    Configuration menu
    Copy the full SHA
    4fc2f9e View commit details
    Browse the repository at this point in the history
  4. refactor: isolate the functionality for interacting with the peer net…

    …work into a NeighborSet trait, and make the NeighborWalk implement this trait. Use the trait methods for sending and receiving messages, so the NeighborWalk state machine can focus more on reacting to neighbors and less on the low-level socket implementation details. Also, expand the test framework so that even-port nodes are stackerdb-aware nodes, and odd-port nodes are not, and make it so each topology test verifies that all stackerdb-aware nodes learn of each others' dbs
    jcnelson committed Feb 5, 2023
    Configuration menu
    Copy the full SHA
    8726327 View commit details
    Browse the repository at this point in the history
  5. chore: FromRow for u32

    jcnelson committed Feb 5, 2023
    Configuration menu
    Copy the full SHA
    76b322d View commit details
    Browse the repository at this point in the history
  6. chore: API sync

    jcnelson committed Feb 5, 2023
    Configuration menu
    Copy the full SHA
    4565b23 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2023

  1. Configuration menu
    Copy the full SHA
    c5f4065 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2023

  1. Configuration menu
    Copy the full SHA
    2741230 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2023

  1. Configuration menu
    Copy the full SHA
    ab1d4f8 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2023

  1. Configuration menu
    Copy the full SHA
    d855c79 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2023

  1. refactor: separate out all transport-logic for neighbor-walk into its…

    … own file, and define traits which network state-machines can implement in order to gain this abstraction layer
    jcnelson committed Jul 29, 2023
    Configuration menu
    Copy the full SHA
    31a1cb0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dfdaa56 View commit details
    Browse the repository at this point in the history
  3. refactor: isolate network I/O from network-walk logic, and isolate DB…

    … I/O into their own methods (first stab)
    jcnelson committed Jul 29, 2023
    Configuration menu
    Copy the full SHA
    8599cda View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0ca476c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1eac8bc View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b6d8dde View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    40fa45f View commit details
    Browse the repository at this point in the history
  8. chore: reply to GetNeighbors with random neighbors that we've seen in…

    … the last few days, instead of any random neighbors (many of which can be dead)
    jcnelson committed Jul 29, 2023
    Configuration menu
    Copy the full SHA
    3fb243f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9a7aeaa View commit details
    Browse the repository at this point in the history
  10. fix: one peer is one slot, so tie stacker DB state to a slot via a fo…

    …reign 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
    jcnelson committed Jul 29, 2023
    Configuration menu
    Copy the full SHA
    260ca31 View commit details
    Browse the repository at this point in the history
  11. feat: Error::StepTimeout captures the case when a state-machine spend…

    …s too long in one state
    jcnelson committed Jul 29, 2023
    Configuration menu
    Copy the full SHA
    13f8938 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    79e460d View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    a9f8286 View commit details
    Browse the repository at this point in the history
  14. chore: formatting

    jcnelson committed Jul 29, 2023
    Configuration menu
    Copy the full SHA
    21f58f2 View commit details
    Browse the repository at this point in the history
  15. fix: /v2/neighbors/ sample field now reports the same information t…

    …hat would be returned to a GetNeighbors request
    jcnelson committed Jul 29, 2023
    Configuration menu
    Copy the full SHA
    50ef132 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    cab7e87 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    70ebe22 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    8f031f3 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    1576d15 View commit details
    Browse the repository at this point in the history
  20. fix: bug in test -- stackerdb-aware nodes fall back to HandshakeAccep…

    …t of the remote peer has a different view of the reward cycle consensus hash
    jcnelson committed Jul 29, 2023
    Configuration menu
    Copy the full SHA
    95e9387 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2023

  1. Configuration menu
    Copy the full SHA
    00f812a View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2023

  1. refactor: capture all PeerDB I/O functionality in a trait implementat…

    …ion, which a NeighborWalk consumes on instantiation (thereby separationg all DB logic from the walk logic)
    jcnelson committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    82123c4 View commit details
    Browse the repository at this point in the history
  2. chore: API sync

    jcnelson committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    862e177 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    56ed1d4 View commit details
    Browse the repository at this point in the history
  4. chore: API sync

    jcnelson committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    b8d2d21 View commit details
    Browse the repository at this point in the history
  5. chore: add a comment

    jcnelson committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    ee59d92 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    49c21aa View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3d0c6d8 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2023

  1. refactor: fully extract and implement peer network comms into its own…

    … struct, which is now going to be a member of NeighborWalk
    jcnelson committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    4ceef5c View commit details
    Browse the repository at this point in the history
  2. refactor: parameterize NeighborWalk by its comms type, and give it a …

    …member for doing comms with neighbors
    jcnelson committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    d9e8bc5 View commit details
    Browse the repository at this point in the history
  3. chore: API sync

    jcnelson committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    e269eaa View commit details
    Browse the repository at this point in the history
  4. chore: API sync

    jcnelson committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    21ed11e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2515a71 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2023

  1. Configuration menu
    Copy the full SHA
    e49395f View commit details
    Browse the repository at this point in the history
  2. chore: address review feedback (remove needless lifetimes, double-che…

    …ck how we use peer slots)
    jcnelson committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    0a612ea View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    93b0190 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4d000fa View commit details
    Browse the repository at this point in the history
  5. refactor: separate out walk construction logic, and make sure we stop…

    … a slow walk that's still ongoing
    jcnelson committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    b8b1bcf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4b63b18 View commit details
    Browse the repository at this point in the history
  7. refactor: deduplicate code, and be more careful about what neighbor d…

    …ata we save from non-outbound walks
    jcnelson committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    4ba2520 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    750442f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c879ff1 View commit details
    Browse the repository at this point in the history
  10. chore: cargo fmt

    jcnelson committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    1f6b54f View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    2fe8cfe View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b3d27f5 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    bbb8e48 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    e5c8498 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2023

  1. Configuration menu
    Copy the full SHA
    0192fd1 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2023

  1. Configuration menu
    Copy the full SHA
    7d7b2ce View commit details
    Browse the repository at this point in the history
  2. chore: address PR feedback

    jcnelson committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    6966f0c View commit details
    Browse the repository at this point in the history