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

Use flex-error for tendermint-rs errors #923

Merged
merged 30 commits into from
Aug 7, 2021
Merged

Commits on Jun 30, 2021

  1. Configuration menu
    Copy the full SHA
    8bd987c View commit details
    Browse the repository at this point in the history
  2. Use flex-error for p2p

    soareschen committed Jun 30, 2021
    Configuration menu
    Copy the full SHA
    0df6c59 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2021

  1. Configuration menu
    Copy the full SHA
    f9edb66 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d042c04 View commit details
    Browse the repository at this point in the history
  3. Fix lint

    soareschen committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    c21edce View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    90a26cd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c4a41df View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2021

  1. Configuration menu
    Copy the full SHA
    668beb3 View commit details
    Browse the repository at this point in the history
  2. Use flex-error for abci

    soareschen committed Jul 2, 2021
    Configuration menu
    Copy the full SHA
    98a161a View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2021

  1. Configuration menu
    Copy the full SHA
    266e0cc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a9bb713 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2021

  1. Fix failing tests

    soareschen committed Jul 9, 2021
    Configuration menu
    Copy the full SHA
    45f95ad View commit details
    Browse the repository at this point in the history
  2. Fix more failures

    soareschen committed Jul 9, 2021
    Configuration menu
    Copy the full SHA
    f79236f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cdee9e1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    67e275b View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2021

  1. Configuration menu
    Copy the full SHA
    5682f66 View commit details
    Browse the repository at this point in the history
  2. Fix incoming_fixtures test

    soareschen committed Jul 14, 2021
    Configuration menu
    Copy the full SHA
    5763a28 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2021

  1. Configuration menu
    Copy the full SHA
    08115e0 View commit details
    Browse the repository at this point in the history
  2. Fix conflict

    soareschen committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    17506fa View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2021

  1. Configuration menu
    Copy the full SHA
    515f31e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2095a70 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2021

  1. Configuration menu
    Copy the full SHA
    bef6287 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    da2ed80 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bb30f30 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    90a0df2 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2021

  1. Add .changelog entry (#940)

    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    thanethomson committed Aug 3, 2021
    Configuration menu
    Copy the full SHA
    2ea6da4 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2021

  1. flex-error: resolve conflicts with master (#945)

    * Implement full-duplex secret connection (#938)
    
    * Implement thread-safe cloning of a secret connection
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Expand documentation for SecretConnection on threading considerations
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Extract peer construction into its own method
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Add test for cloned SecretConnection
    
    This adds a `TcpStream`-based test for parallelizing operations on a
    `SecretConnection`. I used `TcpStream` instead of the buffered reader in
    the other tests because it wasn't feasible to implement the `TryClone`
    trait for that buffered pipe implementation.
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Add more messages to test
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Expand comment for clarity
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Add .changelog entry
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Restore half-duplex operations
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Extract encrypt/decrypt fns as independent methods
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Remove unnecessary trait bounds
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Extract send/receive state
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Extract read/write functionality as standalone methods
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Add logic to facilitate splitting SecretConnection into its sending and receiving halves
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Restore split SecretConnection test using new semantics
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Update changelog entry
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Update docs for `SecretConnection`
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Condense error reporting
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Extract TryClone trait into its own crate
    
    As per the discussion at
    #938 (comment),
    this extracts the `TryClone` trait into a new crate called
    `tendermint-std-ext` in the `std-ext` directory.
    
    This new crate is intended to contain any code that we need that extends
    the Rust standard library.
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Reorder imports
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Assert validation regardless of debug build
    
    This introduces the internal encryption assertions at runtime regardless
    of build type. This may introduce a small performance hit, but it's
    probably worth it to ensure correctness.
    
    Effectively this is keeping an eye on the code in the
    `encrypt_and_write` fn to ensure its correctness.
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Remove remote_pubkey optionality from sender/receiver halves
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Update SecretConnection docs with comment content
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Fix doc link to TryClone trait
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Fix doc link to TryClone trait
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Add docs on SecretConnection failures and connection integrity
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Synchronize sending/receiving failures to comply with crypto algorithm constraints
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Rename try_split method to split for SecretConnection
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Remove redundant field name prefixes
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Fix broken link in docs
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Fix recent clippy errors on `master` (#941)
    
    * Fix needless borrows in codebase
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Ignore needless collect warning (we do actually seem to need it)
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    
    * Remove trailing semicolon in macro to fix docs compiling
    
    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    thanethomson committed Aug 7, 2021
    Configuration menu
    Copy the full SHA
    bc2f0cb View commit details
    Browse the repository at this point in the history
  2. Fix master merge

    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    thanethomson committed Aug 7, 2021
    Configuration menu
    Copy the full SHA
    c699ba1 View commit details
    Browse the repository at this point in the history
  3. Remove unnecessary macros

    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    thanethomson committed Aug 7, 2021
    Configuration menu
    Copy the full SHA
    ab1aae4 View commit details
    Browse the repository at this point in the history
  4. Correct error messages

    Signed-off-by: Thane Thomson <connect@thanethomson.com>
    thanethomson committed Aug 7, 2021
    Configuration menu
    Copy the full SHA
    afd7185 View commit details
    Browse the repository at this point in the history