Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Refactor Node state: extract EstablishingNode state #1616

Merged
merged 15 commits into from
May 9, 2019

Commits on May 8, 2019

  1. Configuration menu
    Copy the full SHA
    02b454d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4decffb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2569de1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    40be888 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ae598cb View commit details
    Browse the repository at this point in the history
  6. Fix failures in node_drops, node_restart tests

    - Try to reconnect to a dropped peer immediatelly, not delayed
    - Change `has_unconsensused_observations` to `has_unpolled_observations` to prevent terminating the tests prematurely
    - If node loses all connections, emit `RestartRequired` even if we are the first node (unless during network startup).
    - Randomize the drop order in the node_restart test to make it more likely to catch bugs
    madadam committed May 8, 2019
    Configuration menu
    Copy the full SHA
    d90e779 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    89bc2cd View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8c46b97 View commit details
    Browse the repository at this point in the history
  9. Minor fix in sending RoutingMessage as unestablished

    Also move send_signed_message_to_peer from Relocated back to Node, as it is only used there.
    madadam committed May 8, 2019
    Configuration menu
    Copy the full SHA
    3382ef7 View commit details
    Browse the repository at this point in the history
  10. Simplify state conversions

    madadam committed May 8, 2019
    Configuration menu
    Copy the full SHA
    988e0c5 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    402c71b View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    fae3fba View commit details
    Browse the repository at this point in the history
  13. Rename Bootstrapping to BootstrappingPeer

    So all state names are nouns now, for consistency.
    madadam committed May 8, 2019
    Configuration menu
    Copy the full SHA
    ed5b713 View commit details
    Browse the repository at this point in the history
  14. Make state conversions more explicit

    Change the return type of the various `into_` function to `Result<State>` so in case of error we return `Err` instead of silently ignoring it and returning `State::Terminated`.
    madadam committed May 8, 2019
    Configuration menu
    Copy the full SHA
    2dd16fb View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    a648b9b View commit details
    Browse the repository at this point in the history