forked from informalsystems/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Asynchronous tx confirmations (informalsystems#1278)
* Added non-blocking interface to submit msgs (stub) * Basic impl for submit_msgs * Minor improvements. Cherry-picked from commit b63335b Author: Adi Seredinschi <adi@informal.systems> Date: Sat Jul 17 10:36:38 2021 +0200 From IbcEvent to IbcEventWithHash * Avoid cloning in assemble_msgs * relay_from_operational_data is now generic * TxHash wrapper * unconfirmed module and mediator stub * Implemented unconfirmed::Mediator corner-cases * Moved from TxHash to TxHashes for better output * More comments & ideas * Added minimum backoff * Fixed ordering bug * Undo var renaming for easier review * Fix type errors * WIP refactoring * Refactor mediator code * Add some comments * Refactor relay_path methods to not require &mut self * Use CPS to retry submitting unconfirmed transactions * Fix clippy * Check that channel has valid channel ID in RelayPath::new() There is no more &mut self reference in RelayPath, so there is no way self.channel will be updated to contain channel ID later on * Display more information in logs * Rename send_msgs and submit_msgs with send_messages_and_wait_commit/check_tx * Remove min backoff parameter * Fix E2E test * Handle error repsponse in pending tx separately * Log RelaySummary in PacketWorker * Revert change to backoff duration in PacketWorker * Minor cleanup * Add logging message for when send_messages_* methods are called Co-authored-by: Soares Chen <soares.chen@gmail.com> Co-authored-by: Soares Chen <soares.chen@maybevoid.com>
- Loading branch information
1 parent
a29805c
commit 0ee1788
Showing
21 changed files
with
925 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.