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

chore: optimize header waiting process #401

Closed
wants to merge 1 commit into from
Closed

Conversation

ashuralyk
Copy link
Contributor

No description provided.

@ashuralyk ashuralyk requested review from Flouse and blckngm December 22, 2023 16:02
@@ -238,6 +238,7 @@ impl FullNode {
packet_filter: Default::default(),
websocket_addr,
rpc_addr,
cell_emitter_addr: Url::from_str("http://127.0.0.1").unwrap(), // set it as normal in test
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about the port of cell_emitter_addr?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this field in test-framework isn't necessary, so it can be everything including without port

@ashuralyk ashuralyk requested a review from Flouse December 25, 2023 02:44
@@ -1388,8 +1388,32 @@ impl AxonChain {
Ok(e) => return Ok(e),
Err(e) => {
if e.to_string().contains("reverted: getHeader") {
std::thread::sleep(Duration::from_secs(5));
tracing::info!("getHeader failed, waiting for header sync");
#[cfg(not(test))]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may not work as you would expect: https://github.com/synapseweb3/forcerelay/actions/runs/7305634478/job/19909434313?pr=401#step:19:671

(Because only the ibc-test crate would have cfg(test), not the relayer crate.)

@blckngm
Copy link
Contributor

blckngm commented Dec 25, 2023

I'll open a new PR including only the axon_ibc_handler_address change.

@blckngm blckngm closed this Dec 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants