-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(node): Implement exchange client (#63)
* feat(node): Implement exchange client * Implement Exchange client in Behaviour * remove `todo!` * Exchange can return multiple HeaderResponse * add get_single_header test * rename PeerBook to PeerTracker * add more logs * fix wasm compilation * add more logs * implement get_verified_header_range_by_height * polish public API and add more tests * Address PR comments * fix clippy issues * redefine HASH_SIZE from tendermint * add HeaderRequest helper functions under HeaderRequestExt * report connection errors * test that get_header_by_height(0) works
- Loading branch information
Showing
14 changed files
with
826 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
use anyhow::Result; | ||
|
||
fn main() -> Result<()> { | ||
celestia::run() | ||
#[cfg(not(target_arch = "wasm32"))] | ||
#[tokio::main] | ||
async fn main() -> anyhow::Result<()> { | ||
celestia::run().await | ||
} | ||
|
||
// Placeholder to allow compilation | ||
#[cfg(target_arch = "wasm32")] | ||
fn main() {} |
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.